<?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 Re: Ignore row filter to get list of dates to selected date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3599339#M139080</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343460" data-lia-user-login="Asmoday1507" class="lia-mention lia-mention-user"&gt;Asmoday1507&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;All Dates to Selected = 
CALCULATE(
    COUNTROWS('DIM_CALENDAR'),
    FILTER(
        ALL('DIM_CALENDAR'),
        'DIM_CALENDAR'[Date] &amp;lt;= MAX('DIM_CALENDAR'[Date])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt; | &lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt; | &lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;| &lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 23:35:48 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2023-12-22T23:35:48Z</dc:date>
    <item>
      <title>Ignore row filter to get list of dates to selected date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3598853#M139059</link>
      <description>&lt;P&gt;Hey everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a huge problem avoiding the row filter when selecting a specific date. For the sake of example, let's assume I have 1 table, called DIM_CALENDAR, and a measure that counts the number of days selected. If I select a specific date on the slicer, I get that one date, and I would like to get all the dates up to that selected date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only solution I can see, but is not accepted by the business, is to set the date slicer to a period up to a specific date, but unfortunately the business wants to select dates from a drop-down list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My measure (not working):&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; C&lt;/SPAN&gt;&lt;SPAN&gt;OUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DIM_CALENDAR&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&l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(because one date is selected, but I wanna see all dates to this date)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How to write correct measure in dax?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;My measure doesn't working:&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;I wanna see list of dates to this selected date on the right side&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Dec 2023 15:15:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3598853#M139059</guid>
      <dc:creator>Asmoday1507</dc:creator>
      <dc:date>2023-12-22T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore row filter to get list of dates to selected date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3599339#M139080</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343460" data-lia-user-login="Asmoday1507" class="lia-mention lia-mention-user"&gt;Asmoday1507&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;All Dates to Selected = 
CALCULATE(
    COUNTROWS('DIM_CALENDAR'),
    FILTER(
        ALL('DIM_CALENDAR'),
        'DIM_CALENDAR'[Date] &amp;lt;= MAX('DIM_CALENDAR'[Date])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt; | &lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt; | &lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;| &lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/channel/UCF-uQfGF8de-EWnR9b2UQhQ" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 23:35:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3599339#M139080</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2023-12-22T23:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore row filter to get list of dates to selected date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3600859#M139137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343460" data-lia-user-login="Asmoday1507" class="lia-mention lia-mention-user"&gt;Asmoday1507&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Based on what you’ve mentioned, to &lt;SPAN&gt;get all the dates up to that selected date&lt;SPAN&gt;, you can follow these steps:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="" style="background: white;"&gt;&lt;SPAN&gt;Here are my test data:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="" style="background: white;"&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;1.Create a calculate table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = VALUES('DIM-CALENDER'[Date]) &lt;/LI-CODE&gt;
&lt;P&gt;2.Create a Slicer by using DATE column of table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.&lt;SPAN&gt;Create another and set to the filter of this visual(table), and set options as ‘is 1’&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; Measure = VAR Selected_value = SELECTEDVALUE('Table'[Date]) RETURN IF( MAX('DIM-CALENDER'[Date]) &amp;lt;= Selected_value, 1, 0) &lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.Final output&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In order for you to solve the problem faster, you can refer to the following documentation&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;&lt;A title="Original URL: https://community.fabric.microsoft.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490. Click or tap if you trust this link." href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.fabric.microsoft.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-heq%40microsoft.com%7C91a5fcce1db64761039808dc051927c6%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638390852961315222%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=1LziyBNkL%2FX6uFTmBjwATwE0rCG33YcIChfnhiWXAKE%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Albert He&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 08:03:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ignore-row-filter-to-get-list-of-dates-to-selected-date/m-p/3600859#M139137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-25T08:03:55Z</dc:date>
    </item>
  </channel>
</rss>

