<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calendar Dates are not Filtering as per dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-Dates-are-not-Filtering-as-per-dates/m-p/71813#M80</link>
    <description>&lt;P&gt;I am using &amp;nbsp;calender command which makes a calendar as per min date and max date, but this calander is filtering as per role Mention in &amp;nbsp;power bi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data which related to multiple property and in which &amp;nbsp;, property&amp;nbsp;"A"&amp;nbsp;started in 2011 and second property "B" started in&amp;nbsp;2013 to til now , I have set a role according to property &lt;STRONG&gt;A&lt;/STRONG&gt; and &lt;STRONG&gt;B,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want when i select Property A Calender year and dates should be starts from 2011 and When select B calender year should be start from 2013. Please find the below code which i am to make calender table .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date =&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;CALENDAR (&lt;BR /&gt;DATE ( YEAR ( MIN ( Table1[Check Date] ) ), 1, 1 ),&lt;BR /&gt;DATE ( YEAR ( MAX ( Table1[Check Date] ) ), 12, 31 )&lt;BR /&gt;),&lt;BR /&gt;"Year",INT(FORMAT ( [Date], "YYYY" )),&lt;BR /&gt;"Month Number", INT ( FORMAT ( [Date], "MM" ) ),&lt;BR /&gt;"Month Name", FORMAT ( [Date], "MMM" ),&lt;BR /&gt;"Month Full Name", FORMAT ( [Date], "MMMM" ),&lt;BR /&gt;"Quarter", "Q" &amp;amp; INT ( FORMAT ( [Date], "Q" ) ),&lt;BR /&gt;"Week Day Number", INT ( WEEKDAY ( [Date],2 ) ),&lt;BR /&gt;"Week Day", FORMAT ( [Date], "DDDD" ),&lt;BR /&gt;"Year Month ",FORMAT ( [Date], "MMM" ) &amp;amp; " " &amp;amp; YEAR ( [Date] )&lt;BR /&gt;&lt;BR /&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below screen shot showing data which is coming after setting the role and but year is not filetring as per Table1 date for Property&amp;nbsp;it still starts form 2011 wheree as property B dtata starts from&amp;nbsp;2013.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img&gt;﻿&lt;/img&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2016 06:17:54 GMT</pubDate>
    <dc:creator>Rahul_Bhatt</dc:creator>
    <dc:date>2016-09-26T06:17:54Z</dc:date>
    <item>
      <title>Calendar Dates are not Filtering as per dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-Dates-are-not-Filtering-as-per-dates/m-p/71813#M80</link>
      <description>&lt;P&gt;I am using &amp;nbsp;calender command which makes a calendar as per min date and max date, but this calander is filtering as per role Mention in &amp;nbsp;power bi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data which related to multiple property and in which &amp;nbsp;, property&amp;nbsp;"A"&amp;nbsp;started in 2011 and second property "B" started in&amp;nbsp;2013 to til now , I have set a role according to property &lt;STRONG&gt;A&lt;/STRONG&gt; and &lt;STRONG&gt;B,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want when i select Property A Calender year and dates should be starts from 2011 and When select B calender year should be start from 2013. Please find the below code which i am to make calender table .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date =&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;CALENDAR (&lt;BR /&gt;DATE ( YEAR ( MIN ( Table1[Check Date] ) ), 1, 1 ),&lt;BR /&gt;DATE ( YEAR ( MAX ( Table1[Check Date] ) ), 12, 31 )&lt;BR /&gt;),&lt;BR /&gt;"Year",INT(FORMAT ( [Date], "YYYY" )),&lt;BR /&gt;"Month Number", INT ( FORMAT ( [Date], "MM" ) ),&lt;BR /&gt;"Month Name", FORMAT ( [Date], "MMM" ),&lt;BR /&gt;"Month Full Name", FORMAT ( [Date], "MMMM" ),&lt;BR /&gt;"Quarter", "Q" &amp;amp; INT ( FORMAT ( [Date], "Q" ) ),&lt;BR /&gt;"Week Day Number", INT ( WEEKDAY ( [Date],2 ) ),&lt;BR /&gt;"Week Day", FORMAT ( [Date], "DDDD" ),&lt;BR /&gt;"Year Month ",FORMAT ( [Date], "MMM" ) &amp;amp; " " &amp;amp; YEAR ( [Date] )&lt;BR /&gt;&lt;BR /&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below screen shot showing data which is coming after setting the role and but year is not filetring as per Table1 date for Property&amp;nbsp;it still starts form 2011 wheree as property B dtata starts from&amp;nbsp;2013.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img&gt;﻿&lt;/img&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img&gt;﻿&lt;/img&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 06:17:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-Dates-are-not-Filtering-as-per-dates/m-p/71813#M80</guid>
      <dc:creator>Rahul_Bhatt</dc:creator>
      <dc:date>2016-09-26T06:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar Dates are not Filtering as per dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-Dates-are-not-Filtering-as-per-dates/m-p/2379917#M61463</link>
      <description>&lt;P&gt;You cannot change a table calculation based on a role. Instead, build the max calendar table you need. &amp;nbsp;You could probably filter it using a suitable measure against a slicer on the calendar table&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 00:50:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calendar-Dates-are-not-Filtering-as-per-dates/m-p/2379917#M61463</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2022-03-08T00:50:10Z</dc:date>
    </item>
  </channel>
</rss>

