<?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: My use of EARLIER the determine a prior value is not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/963031#M11344</link>
    <description>&lt;P&gt;aaahhh..hahaha.... thanks so much.&amp;nbsp; As soon as I saw your response it all fell into place.&amp;nbsp; I'm learning to think in terms of filters, but hadn't thought through the impact of State as an additional dimension.&amp;nbsp; I had been wondering what I could have done better from a troubleshooting perspective, and the answer is to verify that I've considered all potential contributors to the filter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again &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;&amp;nbsp;!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;btw... one of life's pleasant little ironies that the solution did indeed involve more EARLIER...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Mar 2020 04:03:03 GMT</pubDate>
    <dc:creator>tslyonsnj</dc:creator>
    <dc:date>2020-03-07T04:03:03Z</dc:date>
    <item>
      <title>My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/959746#M11170</link>
      <description>&lt;P&gt;I'm trying to develop a pct change in a value row to row, but am stuck getting the prior value of my field.&amp;nbsp; I've looked at many of the similar threads in this community, and cannot identify where my code is not matching those examples.&amp;nbsp; I'd appreciate having a more experienced set of eyes on it, if someone's willing.&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;I'm interested in the % change in field "Tot", which is the sum of Columns "At Minimum Wage" and "Below Minimum Wage".&lt;/P&gt;&lt;P&gt;Here's my code to capture the prior value of "Tot":&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;PrevRowTot = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAX('Minimum Wage'[Tot]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER('Minimum Wage','Minimum Wage'[Year]=EARLIER('Minimum Wage'[PrevYear]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I've tried SUM, MIN, and MAX to see if I can determine any pattern in the resultant change in the values returned, but to no avail, and none of them match the prior value of "Tot".&lt;/P&gt;&lt;P&gt;Being kind of new, I'm not sure how to share my pbix, but will be happy to folllow instruction.&amp;nbsp; Thanks once again.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&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>Thu, 05 Mar 2020 04:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/959746#M11170</guid>
      <dc:creator>tslyonsnj</dc:creator>
      <dc:date>2020-03-05T04:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/959762#M11173</link>
      <description>&lt;P&gt;Best way is to put your PBIX on OneDrive or Box and share.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 04:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/959762#M11173</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-05T04:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/960432#M11205</link>
      <description>Hi &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;BR /&gt;&lt;BR /&gt;It's a problem with EARLIER. You should be able to help him :))) I can't understand why it does not work. After all, you say that... &lt;BR /&gt;&lt;BR /&gt;"EARLIER is the greatest DAX function of all time. If you can't solve your calculation problem, just use EARLIER. Works every time.".&lt;BR /&gt;&lt;BR /&gt;Why then does it not work if you say that it works every time, Greg?&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Thu, 05 Mar 2020 12:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/960432#M11205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-05T12:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/961386#M11235</link>
      <description>&lt;P&gt;Thanks for responding.&amp;nbsp; I will read your referenced post but have saved my pbix on a shared OneDrive folder:&lt;/P&gt;&lt;P&gt;&lt;A title="mm2019w3 pbix file" href="https://1drv.ms/u/s!AlUz3UOkp9Gi83jtVmkUgaHfta-D?e=wQVnUg" target="_self"&gt;https://1drv.ms/u/s!AlUz3UOkp9Gi83jtVmkUgaHfta-D?e=wQVnUg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 03:21:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/961386#M11235</guid>
      <dc:creator>tslyonsnj</dc:creator>
      <dc:date>2020-03-06T03:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/961413#M11236</link>
      <description>&lt;P&gt;As a matter of fact&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106229" data-lia-user-login="tslyonsnj" class="lia-mention lia-mention-user"&gt;tslyonsnj&lt;/a&gt;&amp;nbsp;- Your use of EARLIER was brilliant! You just need MORE EARLIER!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PrevRowTot = 
    CALCULATE(
        MAX('Minimum Wage'[Tot]),
        FILTER('Minimum Wage','Minimum Wage'[Year]=EARLIER('Minimum Wage'[PrevYear]) &amp;amp;&amp;amp; [State]=EARLIER('Minimum Wage'[State]))
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Mar 2020 03:38:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/961413#M11236</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-06T03:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/963031#M11344</link>
      <description>&lt;P&gt;aaahhh..hahaha.... thanks so much.&amp;nbsp; As soon as I saw your response it all fell into place.&amp;nbsp; I'm learning to think in terms of filters, but hadn't thought through the impact of State as an additional dimension.&amp;nbsp; I had been wondering what I could have done better from a troubleshooting perspective, and the answer is to verify that I've considered all potential contributors to the filter context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again &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;&amp;nbsp;!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;btw... one of life's pleasant little ironies that the solution did indeed involve more EARLIER...&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 04:03:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/963031#M11344</guid>
      <dc:creator>tslyonsnj</dc:creator>
      <dc:date>2020-03-07T04:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: My use of EARLIER the determine a prior value is not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/963032#M11345</link>
      <description>&lt;P&gt;No worries, DAX is easy to learn but difficult to master. Takes a while to learn how to "Think DAX"!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2020 04:04:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/My-use-of-EARLIER-the-determine-a-prior-value-is-not-working/m-p/963032#M11345</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-07T04:04:39Z</dc:date>
    </item>
  </channel>
</rss>

