<?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: How to get same day value from previous years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/974846#M11739</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Sure,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a disconnected date table like this:&amp;nbsp;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Production Dates = DISTINCT('Table'[Production Date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;Create a measure like this:&amp;nbsp;
&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; VAR __CompareDate = MAX('Production Dates'[Production Date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; VAR __Date = MAX('Table'[Production Date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; IF(DAY(__Date) = DAY(__CompareDate) &amp;amp;&amp;amp; MONTH(__Date) = MONTH(__CompareDate),1,0)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;Now use that measure in a Filter on your table like image below&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I have attached a PBIX if it helps. Below my sig.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 15:19:36 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-03-15T15:19:36Z</dc:date>
    <item>
      <title>How to get same day value from previous years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/974813#M11729</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have two tables one with a production value from previous 5 years and a datetable.&lt;/P&gt;&lt;P&gt;I would like to show a same day same month value in every year compared with cuurent day.&amp;nbsp; The values are producing each hour everyday as 24 values per day.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;ProductionDate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Production value&lt;/P&gt;&lt;P&gt;01/02/2016&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1232&lt;/P&gt;&lt;P&gt;04/05/2017&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12465&lt;/P&gt;&lt;P&gt;31/08/2017&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5757&lt;/P&gt;&lt;P&gt;27/11/2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3432&lt;/P&gt;&lt;P&gt;15/10/2018&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5766&lt;/P&gt;&lt;P&gt;04/05/2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5767&lt;/P&gt;&lt;P&gt;01/02/2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5322&lt;/P&gt;&lt;P&gt;01/02/2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2789&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Visual:&lt;/P&gt;&lt;P&gt;Value on current date: 01/02/2020 compared from previous years&lt;/P&gt;&lt;P&gt;01/02/2020&amp;nbsp; &amp;nbsp;:&amp;nbsp; &amp;nbsp;2789&lt;/P&gt;&lt;P&gt;01/02/2019&amp;nbsp; &amp;nbsp;:&amp;nbsp; &amp;nbsp;5322&lt;/P&gt;&lt;P&gt;01/02/2016&amp;nbsp; &amp;nbsp;:&amp;nbsp; &amp;nbsp;1232&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be a great help if one could help how to get this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ravali&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 06:54:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/974813#M11729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T06:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get same day value from previous years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/974846#M11739</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- Sure,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a disconnected date table like this:&amp;nbsp;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Production Dates = DISTINCT('Table'[Production Date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;Create a measure like this:&amp;nbsp;
&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; VAR __CompareDate = MAX('Production Dates'[Production Date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; VAR __Date = MAX('Table'[Production Date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; IF(DAY(__Date) = DAY(__CompareDate) &amp;amp;&amp;amp; MONTH(__Date) = MONTH(__CompareDate),1,0)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;Now use that measure in a Filter on your table like image below&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I have attached a PBIX if it helps. Below my sig.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 15:19:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/974846#M11739</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-15T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get same day value from previous years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/975471#M11780</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I have made a little unclear question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to visualize current day value and previous years on same day. Could you please help me in this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be a great help.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ravali.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 06:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/975471#M11780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T06:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get same day value from previous years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/976209#M11806</link>
      <description>Anonymous&lt;/a&gt; - That's what I created.</description>
      <pubDate>Mon, 16 Mar 2020 13:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-same-day-value-from-previous-years/m-p/976209#M11806</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-16T13:59:29Z</dc:date>
    </item>
  </channel>
</rss>

