{"id":3332,"date":"2021-06-22T12:40:17","date_gmt":"2021-06-22T12:40:17","guid":{"rendered":"https:\/\/iberico.nl\/calendar\/"},"modified":"2023-10-27T14:36:21","modified_gmt":"2023-10-27T14:36:21","slug":"calendar","status":"publish","type":"page","link":"https:\/\/iberico.nl\/en\/calendar\/","title":{"rendered":"calendar"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.9.7&#8243; _module_preset=&#8221;default&#8221;][et_pb_row _builder_version=&#8221;4.9.7&#8243; _module_preset=&#8221;default&#8221;][et_pb_column _builder_version=&#8221;4.9.7&#8243; _module_preset=&#8221;default&#8221; type=&#8221;4_4&#8243;][et_pb_text _builder_version=&#8221;4.9.7&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<\/p>\n<p>DIM_Calendar = ADDCOLUMNS(CALENDAR(MIN(FactTable[Datum]),DATE(YEAR(TODAY())+1,12,31)),<\/p>\n<p>\/\/ The above line picks the lowest date from the fact table (modify this) and the last day of next year.<\/p>\n<p>&nbsp;<\/p>\n<p>&#8220;Year&#8221; , YEAR ([Date]) ,<\/p>\n<p>&#8220;Quarter&#8221; , CONCATENATE(&#8220;Q&#8221;,ROUNDUP(MONTH([Date])\/3,0)),<\/p>\n<p>&#8220;Month&#8221; , MONTH([Date]),<\/p>\n<p>&#8220;Month name&#8221;, IF(MONTH([Date]) = 1, &#8220;Jan,&#8221; IF(MONTH([Date]) = 2, &#8220;Feb,&#8221; IF(MONTH([Date]) = 3, &#8220;Maa&#8221;, IF(MONTH([Date]) = 4, &#8220;Apr&#8221;,IF(MONTH([Date]) = 5, &#8220;May,&#8221; IF(MONTH([Date]) = 6, &#8220;Jun,&#8221; IF(MONTH([Date]) = 7, &#8220;Jul,&#8221; IF(MONTH([Date]) = 8, &#8220;Aug,&#8221; IF(MONTH([Date]) = 9, &#8220;Sep,&#8221; IF(MONTH([Date]) = 10, &#8220;Oct,&#8221; IF(MONTH([Date]) = 11, &#8220;Nov,&#8221; IF(MONTH([Date]) = 12, &#8220;Dec,&#8221; BLANK ())))))))))))),<\/p>\n<p>&#8220;Week&#8221; , WEEKNUM([Date],21),<\/p>\n<p>&#8220;Weekday&#8221; , WEEKDAY([Date],2),<\/p>\n<p>&#8220;Day&#8221; , DAY([Date]),<\/p>\n<p>&#8220;Year-Month&#8221; , (YEAR([Date])*100) + MONTH([Date]),<\/p>\n<p>&#8220;Year-Week&#8221; , (YEAR([Date])*100) + WEEKNUM([Date],21),<\/p>\n<p>&#8220;YearsBack&#8221; , CONVERT(YEAR(TODAY())) &#8211; YEAR([Date]),STRING),<\/p>\n<p>&#8220;MonthsBack&#8221; , CONVERT(DATEDIFF( [Date],TODAY(),MONTH),STRING),<\/p>\n<p>&#8220;WeeksBack&#8221; , CONVERT(ROUNDUP(DATEDIFF( [Date], TODAY() + (8 &#8211; WEEKDAY(TODAY(),2)),DAY) \/ 7,0)-1,STRING),<\/p>\n<p>&#8220;DaysBack&#8221; , DATEDIFF( [Date],TODAY(),DAY),<\/p>\n<p>&#8220;YearToDate&#8221;, IF([Date] &gt;= DATE(YEAR(TODAY()),1,1) &amp;&amp; [Date] &lt;= TODAY(), &#8220;Yes&#8221;, &#8220;No&#8221;),<\/p>\n<p>&#8220;Finished months,&#8221; IF([Date] &gt;= DATE(YEAR(TODAY()),1,1) &amp;&amp;  [Date] &lt;= TODAY() &amp;&amp; MONTH([Date])  &lt;  MONTH(TODAY()), &#8220;Yes&#8221;, &#8220;No&#8221;),<\/p>\n<p>&#8220;Finished months years&#8221;, IF(MONTH([Date]) &lt; MONTH(TODAY()), &#8220;Yes&#8221;, &#8220;No&#8221;),<\/p>\n<p>&#8220;LastYearToDate&#8221;, IF([Date] &gt;= DATE(YEAR(TODAY())-1,1,1) &amp;&amp; [Date] &lt;= DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())), &#8220;Yes&#8221;, &#8220;No&#8221;),<\/p>\n<p>&#8220;Today,&#8221; IF([Date] = TODAY(), &#8220;Yes,&#8221; &#8220;No&#8221;),<\/p>\n<p>&#8220;Yesterday,&#8221; IF([Date] = TODAY()-1, &#8220;Yes,&#8221; &#8220;No&#8221;),<\/p>\n<p>&#8220;This week,&#8221; IF(ROUNDUP(DATEDIFF( [Date], TODAY() + (8 &#8211; WEEKDAY(TODAY(),2)),DAY) \/ 7,0) = 1, &#8220;Yes,&#8221; &#8220;No&#8221;),<\/p>\n<p>&#8220;Last week,&#8221; IF(ROUNDUP(DATEDIFF( [Date], TODAY() + (8 &#8211; WEEKDAY(TODAY(),2)),DAY) \/ 7,0) = 2, &#8220;Yes,&#8221; &#8220;No&#8221;),<\/p>\n<p>&#8220;This month&#8221;, IF(DATEDIFF([Date],TODAY(),MONTH) = 0, &#8220;Yes&#8221;, &#8220;No&#8221;),<\/p>\n<p>&#8220;Previous month&#8221;, IF(DATEDIFF([Date],TODAY(),MONTH) = -1, &#8220;Yes&#8221;, &#8220;No&#8221;),<\/p>\n<p>&#8220;This year,&#8221; IF(DATEDIFF([Date],TODAY(),YEAR) = 0, &#8220;Yes,&#8221; &#8220;No&#8221;)<\/p>\n<p>)<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.9.7&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; sticky_enabled=&#8221;0&#8243;]<\/p>\n<div>\n<div><span>DIM_DateFilters = UNION(FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[YearToDate], &#8220;Label&#8221;, &#8220;Year To Date&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[LastYearToDate], &#8220;Label&#8221;, &#8220;Last Year To Date&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Vandaag], &#8220;Label&#8221;, &#8220;Today&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Gisteren], &#8220;Label&#8221;, &#8220;Yesterday&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Deze week], &#8220;Label&#8221;, &#8220;This Week&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Deze week], &#8220;Label&#8221;, &#8220;All Dates&#8221;),[FilterColumn] IN {&#8220;Yes&#8221;, &#8220;No&#8221;}),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Afgesloten maanden], &#8220;Label&#8221;, &#8220;Finished months&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Vorige maand], &#8220;Label&#8221;, &#8220;Previous Month&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Deze maand], &#8220;Label&#8221;, &#8220;This Month&#8221;),[FilterColumn] = &#8220;Yes&#8221;),<\/span><\/div>\n<div><span>  FILTER(SELECTCOLUMNS(DIM_Calendar, &#8220;Date&#8221;,[Date], &#8220;FilterColumn&#8221;,[Dit jaar], &#8220;Label&#8221;, &#8220;This Year&#8221;),[FilterColumn] = &#8220;Yes&#8221;))<\/span><\/div>\n<\/div>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DIM_Calendar = ADDCOLUMNS(CALENDAR(MIN(FactTable[Datum]),DATE(YEAR(TODAY())+1,12,31)), \/\/ The above line picks the lowest date from the fact table (modify this) and the last day of next year. &nbsp; &#8220;Year&#8221; , YEAR ([Date]) , &#8220;Quarter&#8221; , CONCATENATE(&#8220;Q&#8221;,ROUNDUP(MONTH([Date])\/3,0)), &#8220;Month&#8221; , MONTH([Date]), &#8220;Month name&#8221;, IF(MONTH([Date]) = 1, &#8220;Jan,&#8221; IF(MONTH([Date]) = 2, &#8220;Feb,&#8221; IF(MONTH([Date]) = 3, &#8220;Maa&#8221;, IF(MONTH([Date]) = 4, &#8220;Apr&#8221;,IF(MONTH([Date]) = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-3332","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>calendar - Power BI<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iberico.nl\/en\/calendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"calendar - Power BI\" \/>\n<meta property=\"og:description\" content=\"DIM_Calendar = ADDCOLUMNS(CALENDAR(MIN(FactTable[Datum]),DATE(YEAR(TODAY())+1,12,31)), \/\/ The above line picks the lowest date from the fact table (modify this) and the last day of next year. &nbsp; &quot;Year&quot; , YEAR ([Date]) , &quot;Quarter&quot; , CONCATENATE(&quot;Q&quot;,ROUNDUP(MONTH([Date])\/3,0)), &quot;Month&quot; , MONTH([Date]), &quot;Month name&quot;, IF(MONTH([Date]) = 1, &quot;Jan,&quot; IF(MONTH([Date]) = 2, &quot;Feb,&quot; IF(MONTH([Date]) = 3, &quot;Maa&quot;, IF(MONTH([Date]) = 4, &quot;Apr&quot;,IF(MONTH([Date]) = [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iberico.nl\/en\/calendar\/\" \/>\n<meta property=\"og:site_name\" content=\"Power BI\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-27T14:36:21+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iberico.nl\/en\/calendar\/\",\"url\":\"https:\/\/iberico.nl\/en\/calendar\/\",\"name\":\"calendar - Power BI\",\"isPartOf\":{\"@id\":\"https:\/\/iberico.nl\/en\/#website\"},\"datePublished\":\"2021-06-22T12:40:17+00:00\",\"dateModified\":\"2023-10-27T14:36:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/iberico.nl\/en\/calendar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iberico.nl\/en\/calendar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iberico.nl\/en\/calendar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iberico.nl\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"calendar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iberico.nl\/en\/#website\",\"url\":\"https:\/\/iberico.nl\/en\/\",\"name\":\"Power BI\",\"description\":\"Power BI Dashboards\",\"publisher\":{\"@id\":\"https:\/\/iberico.nl\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iberico.nl\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/iberico.nl\/en\/#organization\",\"name\":\"Iberico\",\"url\":\"https:\/\/iberico.nl\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/iberico.nl\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/iberico.nl\/wp-content\/uploads\/2020\/12\/Logo_Iberico-donker-blauw-e1607338095420.png\",\"contentUrl\":\"https:\/\/iberico.nl\/wp-content\/uploads\/2020\/12\/Logo_Iberico-donker-blauw-e1607338095420.png\",\"width\":250,\"height\":78,\"caption\":\"Iberico\"},\"image\":{\"@id\":\"https:\/\/iberico.nl\/en\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"calendar - Power BI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/iberico.nl\/en\/calendar\/","og_locale":"en_US","og_type":"article","og_title":"calendar - Power BI","og_description":"DIM_Calendar = ADDCOLUMNS(CALENDAR(MIN(FactTable[Datum]),DATE(YEAR(TODAY())+1,12,31)), \/\/ The above line picks the lowest date from the fact table (modify this) and the last day of next year. &nbsp; \"Year\" , YEAR ([Date]) , \"Quarter\" , CONCATENATE(\"Q\",ROUNDUP(MONTH([Date])\/3,0)), \"Month\" , MONTH([Date]), \"Month name\", IF(MONTH([Date]) = 1, \"Jan,\" IF(MONTH([Date]) = 2, \"Feb,\" IF(MONTH([Date]) = 3, \"Maa\", IF(MONTH([Date]) = 4, \"Apr\",IF(MONTH([Date]) = [&hellip;]","og_url":"https:\/\/iberico.nl\/en\/calendar\/","og_site_name":"Power BI","article_modified_time":"2023-10-27T14:36:21+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iberico.nl\/en\/calendar\/","url":"https:\/\/iberico.nl\/en\/calendar\/","name":"calendar - Power BI","isPartOf":{"@id":"https:\/\/iberico.nl\/en\/#website"},"datePublished":"2021-06-22T12:40:17+00:00","dateModified":"2023-10-27T14:36:21+00:00","breadcrumb":{"@id":"https:\/\/iberico.nl\/en\/calendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iberico.nl\/en\/calendar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iberico.nl\/en\/calendar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iberico.nl\/en\/"},{"@type":"ListItem","position":2,"name":"calendar"}]},{"@type":"WebSite","@id":"https:\/\/iberico.nl\/en\/#website","url":"https:\/\/iberico.nl\/en\/","name":"Power BI","description":"Power BI Dashboards","publisher":{"@id":"https:\/\/iberico.nl\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iberico.nl\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/iberico.nl\/en\/#organization","name":"Iberico","url":"https:\/\/iberico.nl\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/iberico.nl\/en\/#\/schema\/logo\/image\/","url":"https:\/\/iberico.nl\/wp-content\/uploads\/2020\/12\/Logo_Iberico-donker-blauw-e1607338095420.png","contentUrl":"https:\/\/iberico.nl\/wp-content\/uploads\/2020\/12\/Logo_Iberico-donker-blauw-e1607338095420.png","width":250,"height":78,"caption":"Iberico"},"image":{"@id":"https:\/\/iberico.nl\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/pages\/3332","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/comments?post=3332"}],"version-history":[{"count":5,"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/pages\/3332\/revisions"}],"predecessor-version":[{"id":3337,"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/pages\/3332\/revisions\/3337"}],"wp:attachment":[{"href":"https:\/\/iberico.nl\/en\/wp-json\/wp\/v2\/media?parent=3332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}