<?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: Determine user progress in historical dataset in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4031851#M159463</link>
    <description>&lt;P&gt;Thanks for letting me know, I changed the sensitivity label. Is is usable now?&amp;nbsp;&lt;A href="https://fromsmash.com/Historic-data-insights2" target="_blank"&gt;https://fromsmash.com/Historic-data-insights2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 06:51:20 GMT</pubDate>
    <dc:creator>Chris2016</dc:creator>
    <dc:date>2024-07-09T06:51:20Z</dc:date>
    <item>
      <title>Determine user progress in historical dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4030591#M159371</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a dataset that refreshes every month and, with each refresh, a new monthly capture is added, e.g.:&lt;BR /&gt;&lt;A href="https://fromsmash.com/monthly-captures" target="_blank" rel="noopener"&gt;https://fromsmash.com/monthly-captures&amp;nbsp;&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to show Sales Persons' # of Items sold progress for those who have taken the company training (ClassPresence = "Yes") vs. those who have not&amp;nbsp;(ClassPresence = "No") and divide those with "Yes" into 3 categories:&lt;BR /&gt;- Increased sales after classes&lt;/P&gt;&lt;P&gt;- Closed the first sale(s) after classes&lt;/P&gt;&lt;P&gt;- No change after classes&lt;BR /&gt;"After classes" means that the Latest Sales date is after the "ClassDate".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how this can be achieved in a relevant visual?&lt;/P&gt;&lt;P&gt;Test pbix here:&amp;nbsp;&lt;A href="https://fromsmash.com/Historic-data-insights2" target="_blank"&gt;https://fromsmash.com/Historic-data-insights2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4030591#M159371</guid>
      <dc:creator>Chris2016</dc:creator>
      <dc:date>2024-07-09T06:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Determine user progress in historical dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4031181#M159434</link>
      <description>&lt;P&gt;Sample file is not usable&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:42:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4031181#M159434</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-08T22:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Determine user progress in historical dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4031851#M159463</link>
      <description>&lt;P&gt;Thanks for letting me know, I changed the sensitivity label. Is is usable now?&amp;nbsp;&lt;A href="https://fromsmash.com/Historic-data-insights2" target="_blank"&gt;https://fromsmash.com/Historic-data-insights2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 06:51:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4031851#M159463</guid>
      <dc:creator>Chris2016</dc:creator>
      <dc:date>2024-07-09T06:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Determine user progress in historical dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4032003#M159473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,Thanks for your quick reply, I will add more.&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460974" data-lia-user-login="Chris2016" class="lia-mention lia-mention-user"&gt;Chris2016&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I used the following dax expression to create a calculated column, please refer to the attachment to see if it meets your needs.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column1 =
VAR _SalesPerson = [Sales Person]
VAR _SalesCategory = [Sales Category]
VAR _ClassDate =
    MAXX (
        FILTER (
            'Monthly Captures',
            [Sales Person] = _SalesPerson
                &amp;amp;&amp;amp; [Sales Category] = _SalesCategory
        ),
        [Column 2]
    )
VAR _maxDateBeforeClassDate =
    MAXX (
        FILTER (
            'Monthly Captures',
            [Sales Person] = _SalesPerson
                &amp;amp;&amp;amp; [Sales Category] = _SalesCategory
                &amp;amp;&amp;amp; [Latest Sales Date] &amp;lt; _ClassDate
        ),
        [Latest Sales Date]
    )
VAR _ItemSoldBeforeClass =
    MAXX (
        FILTER (
            'Monthly Captures',
            [Sales Person] = _SalesPerson
                &amp;amp;&amp;amp; [Sales Category] = _SalesCategory
                &amp;amp;&amp;amp; [Latest Sales Date] = _maxDateBeforeClassDate
        ),
        [# of Items sold]
    )
VAR _minMonthlyCaptureAfterClassDate =
    MINX (
        FILTER (
            'Monthly Captures',
            [Sales Person] = _SalesPerson
                &amp;amp;&amp;amp; [Sales Category] = _SalesCategory
                &amp;amp;&amp;amp; [Latest Sales Date] &amp;gt; _ClassDate
        ),
        [Monthly capture]
    )
VAR _minMonthlyCaptureWhichBiggerBeforeClass =
    MINX (
        FILTER (
            'Monthly Captures',
            [Sales Person] = _SalesPerson
                &amp;amp;&amp;amp; [Sales Category] = _SalesCategory
                &amp;amp;&amp;amp; [# of Items sold] &amp;gt; _ItemSoldBeforeClass
        ),
        [Monthly capture]
    )
VAR _result =
    SWITCH (
        TRUE (),
        [ClassPresence] = "NO", "Not attending classes",
        [Latest Sales Date] &amp;lt; DATEVALUE ( [ClassDate] ), "Not attending classes",
        ISBLANK ( _maxDateBeforeClassDate )
            &amp;amp;&amp;amp; [Monthly capture] = _minMonthlyCaptureAfterClassDate, "Closed the first sale(s) after classes",
        ISBLANK ( _maxDateBeforeClassDate )
            &amp;amp;&amp;amp; [Monthly capture] &amp;lt;&amp;gt; _minMonthlyCaptureAfterClassDate, "Increased sales after classes",
        IF (
            ISBLANK ( _minMonthlyCaptureWhichBiggerBeforeClass ),
            "No change after classes",
            SWITCH (
                TRUE (),
                [Monthly capture] &amp;lt; _minMonthlyCaptureWhichBiggerBeforeClass, "No change after classes",
                [Monthly capture] = _minMonthlyCaptureWhichBiggerBeforeClass, "Closed the first sale(s) after classes",
                "Increased sales after classes"
            )
        )
    )
RETURN
    _result
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 07:46:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4032003#M159473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T07:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Determine user progress in historical dataset</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4034836#M159867</link>
      <description>&lt;P&gt;Thanks so much for your help, your solution is great! I was able to tweak your formula to get what I need.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 14:00:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Determine-user-progress-in-historical-dataset/m-p/4034836#M159867</guid>
      <dc:creator>Chris2016</dc:creator>
      <dc:date>2024-07-10T14:00:43Z</dc:date>
    </item>
  </channel>
</rss>

