<?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 to verify status change between dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-verify-status-change-between-dates/m-p/828106#M5876</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170716" data-lia-user-login="grechill" class="lia-mention lia-mention-user"&gt;grechill&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Here is my PBIX&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AgCd7AyfqZtEyXYmtd5Nmvo_LXwK?e=cfQiE5" target="_blank" rel="noopener"&gt;PBIX FILE&lt;/A&gt;&amp;nbsp;, sorry didn't see yours. So, I would note that the True meets the criteria of a change between current date, and the next older date.&amp;nbsp;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Change =
VAR _curDate = MyTable[Report Date]
VAR _curStage = MyTable[Stage]
VAR _calc =
    CALCULATE (
        IF ( MAX ( MyTable[Stage] ) &amp;lt;&amp;gt; _curStage, "True", "False" ),
        FILTER (
            ALLEXCEPT ( MyTable, MyTable[Opportunity Number] ),
            MyTable[Report Date] &amp;lt; _curDate
        )
    )
RETURN
    _calc&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Oct 2019 03:12:14 GMT</pubDate>
    <dc:creator>Nathaniel_C</dc:creator>
    <dc:date>2019-10-25T03:12:14Z</dc:date>
    <item>
      <title>Measure to verify status change between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-verify-status-change-between-dates/m-p/827948#M5873</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a calcualted field to verify, if there was a Stage change between report date and previous report date based on opportunity number. Close date is not involved in this measure. Report dates are in the same column.&lt;/P&gt;&lt;P&gt;I have tryed many different options, but till now without any success :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data looks like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In written words it would be so: If between report from t and t-1 was a STAGE change, then give TRUE, else FALSE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main report is linked to second table, which defines stage order and some segmentation, and stage order can be used as a numerical value for calculated field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not wish to merge tables, nor pivot the main table, as it would affect other report measures and whole structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I would like to see in the end:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or better 1 and 0 instead of True and False.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach a &lt;A href="https://drive.google.com/file/d/1qsLwLgiw46okqa-i4Hnp2lzdZW1Jsyrl/view?usp=sharing" target="_blank" rel="noopener"&gt;sample pbix&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 22:21:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-verify-status-change-between-dates/m-p/827948#M5873</guid>
      <dc:creator>grechill</dc:creator>
      <dc:date>2019-10-24T22:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to verify status change between dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-verify-status-change-between-dates/m-p/828106#M5876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="170716" data-lia-user-login="grechill" class="lia-mention lia-mention-user"&gt;grechill&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Here is my PBIX&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AgCd7AyfqZtEyXYmtd5Nmvo_LXwK?e=cfQiE5" target="_blank" rel="noopener"&gt;PBIX FILE&lt;/A&gt;&amp;nbsp;, sorry didn't see yours. So, I would note that the True meets the criteria of a change between current date, and the next older date.&amp;nbsp;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Change =
VAR _curDate = MyTable[Report Date]
VAR _curStage = MyTable[Stage]
VAR _calc =
    CALCULATE (
        IF ( MAX ( MyTable[Stage] ) &amp;lt;&amp;gt; _curStage, "True", "False" ),
        FILTER (
            ALLEXCEPT ( MyTable, MyTable[Opportunity Number] ),
            MyTable[Report Date] &amp;lt; _curDate
        )
    )
RETURN
    _calc&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 03:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-verify-status-change-between-dates/m-p/828106#M5876</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2019-10-25T03:12:14Z</dc:date>
    </item>
  </channel>
</rss>

