<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fits</author_name>
  <author_url>https://blog.hatena.ne.jp/fits/</author_url>
  <blog_title>なんとなくな Developer のメモ</blog_title>
  <blog_url>https://fits.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Clojure</anon>
  </categories>
  <description>Metabase を試していたところ、以下の点が気になりました。 週単位で集計すると週初めが日曜になる（日曜から土曜までの集計） （画面例） DB 等、一般的なシステムにおける週初めは月曜になる（ISO 8601）はずなので、Metabase が日曜へ変えているのは確実。 そこで、「SQLを見る」をクリックして SQL の内容を確認してみると、やはり日曜へ変える（週初めの月曜 - 1日）ようになっていました。（接続先 DB は PostgreSQL） クエリビルダーで生成された SQL SELECT (date_trunc('week', CAST((CAST(&quot;public&quot;.&quot;stock_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffits.hatenablog.com%2Fentry%2F2019%2F05%2F25%2F214058&quot; title=&quot; Metabase における週初めは日曜 - なんとなくな Developer のメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/f/fits/20190525/20190525210517.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-25 21:40:58</published>
  <title> Metabase における週初めは日曜</title>
  <type>rich</type>
  <url>https://fits.hatenablog.com/entry/2019/05/25/214058</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
