<?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: Measure based on slicer dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470591#M27913</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , In case you need to save a date like yesterday and today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a column like this in your date table and sort it on the date and save on yesterday&lt;/P&gt;
&lt;P&gt;Date Type = SWITCH(TRUE(),'Date'[Date]=TODAY(),"Today",'Date'[Date]=TODAY()-1,"Yesterday",'Date'[Date]&amp;amp;"")&lt;/P&gt;
&lt;P&gt;refer:&lt;A href="https://www.youtube.com/watch?v=hfn05preQYA" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=hfn05preQYA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or measure like&lt;/P&gt;
&lt;P&gt;This Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))&lt;BR /&gt;Last Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))&lt;BR /&gt;Last Day = CALCULATE(sum('order'[Qty]), previousday('Date'[Date]))&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 02:23:38 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2020-11-03T02:23:38Z</dc:date>
    <item>
      <title>Measure based on slicer dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470502#M27908</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need help in resolving a issue. There are 2 tables which are connected to each other with 1 to many relationship and a date table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My tables refreshes every day. I am using a slicer to filter the date. My requirement is to capture the output of say yesterday and it shouldn't change. Means for the date selected in slicer, i should be able to get the status for that day only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below dax function to perform the action but it is giving me incorrect output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Max_Status = calculate(Max(SCH[CO_ST]),ALLEXCEPT(SCH,SCH[ID]))&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 01:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470502#M27908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T01:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on slicer dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470570#M27912</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;think allexcept function overwrite the filter context comes from date table. try this code&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Max_Status = calculate(Max(SCH[CO_ST]),ALLEXCEPT(SCH,SCH[ID]),values(dates[date]))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 02:13:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470570#M27912</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-03T02:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on slicer dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470591#M27913</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , In case you need to save a date like yesterday and today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a column like this in your date table and sort it on the date and save on yesterday&lt;/P&gt;
&lt;P&gt;Date Type = SWITCH(TRUE(),'Date'[Date]=TODAY(),"Today",'Date'[Date]=TODAY()-1,"Yesterday",'Date'[Date]&amp;amp;"")&lt;/P&gt;
&lt;P&gt;refer:&lt;A href="https://www.youtube.com/watch?v=hfn05preQYA" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=hfn05preQYA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or measure like&lt;/P&gt;
&lt;P&gt;This Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))&lt;BR /&gt;Last Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))&lt;BR /&gt;Last Day = CALCULATE(sum('order'[Qty]), previousday('Date'[Date]))&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 02:23:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470591#M27913</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-03T02:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on slicer dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470653#M27917</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; I guess I was not able to ask my question correctly. My requirement is if I select say 21st Oct on slicer, I will be able to get the status of the records for that day only and not as on yesterday. Records can have different status on different dates. Status should change based on slicer dates.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 02:56:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470653#M27917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T02:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on slicer dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470654#M27918</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I guess I was not able to ask my question correctly. My requirement is if I select say 21st Oct on slicer, I will be able to get the status of the records for that day only and not as on yesterday. Records can have different status on different dates. Status should change based on slicer dates.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 02:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470654#M27918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-03T02:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on slicer dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470910#M27924</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , if it is connected with date that should happen. &lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 06:40:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-slicer-dates/m-p/1470910#M27924</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-03T06:40:28Z</dc:date>
    </item>
  </channel>
</rss>

