<?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 do i get the details of the delta between weeks in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023997#M158928</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692745" data-lia-user-login="rafterse" class="lia-mention lia-mention-user"&gt;rafterse&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;Thanks for your concern about this case!&lt;BR /&gt;&lt;BR /&gt;And&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692745" data-lia-user-login="rafterse" class="lia-mention lia-mention-user"&gt;rafterse&lt;/a&gt;&amp;nbsp;, here is my sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use this DAX to create a measure to calculate the change:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Change = 
VAR _1 = 
CALCULATE(
    DISTINCTCOUNT('Table'[Week1]),
    ALLEXCEPT('Table', 'Table'[Customer]),
    'Table'[Week1] &amp;lt;&amp;gt; BLANK()
)
VAR _2 =
CALCULATE(
    DISTINCTCOUNT('Table'[Week2]),
    ALLEXCEPT('Table', 'Table'[Customer]),
    'Table'[Week2] &amp;lt;&amp;gt; BLANK()
)
RETURN
_2 - _1&lt;/LI-CODE&gt;
&lt;P&gt;And use this DAX to create another measure to filter the detail columns:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
IF(
    (MAX('Table'[Week1]) &amp;lt;&amp;gt; BLANK() &amp;amp;&amp;amp; MAX('Table'[Week2]) = BLANK()) || (MAX('Table'[Week1]) = BLANK() &amp;amp;&amp;amp; MAX('Table'[Week2]) &amp;lt;&amp;gt; BLANK()),
    1,
    0
)&lt;/LI-CODE&gt;
&lt;P&gt;Put the column &lt;STRONG&gt;Customer, Week1, Week2&lt;/STRONG&gt; and the measure &lt;STRONG&gt;Change&lt;/STRONG&gt; into the table visual:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And put the Measure 2 into the Filters on this visual:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And the final output is as below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 02:41:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-04T02:41:05Z</dc:date>
    <item>
      <title>How do i get the details of the delta between weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023760#M158926</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to get the detail of changes between weeks .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;two weeks of data is on one query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to report on only the changes in purchases from week to week and get the detail of the extra purchase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;WeekBegining&lt;/TD&gt;&lt;TD&gt;30/6/24&lt;/TD&gt;&lt;TD&gt;07/07/204&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Week1&lt;/TD&gt;&lt;TD&gt;Week2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; Product A&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product D&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product A&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Product B&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result should look like this&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Change&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Details&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer A&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; +1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product E&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer C&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; -1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; Product A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 00:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023760#M158926</guid>
      <dc:creator>rafterse</dc:creator>
      <dc:date>2024-07-05T00:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the details of the delta between weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023799#M158927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there a date column?&amp;nbsp; If yes, then share that column as well.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 00:27:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023799#M158927</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2024-07-04T00:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get the details of the delta between weeks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023997#M158928</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692745" data-lia-user-login="rafterse" class="lia-mention lia-mention-user"&gt;rafterse&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;Thanks for your concern about this case!&lt;BR /&gt;&lt;BR /&gt;And&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="692745" data-lia-user-login="rafterse" class="lia-mention lia-mention-user"&gt;rafterse&lt;/a&gt;&amp;nbsp;, here is my sample data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use this DAX to create a measure to calculate the change:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Change = 
VAR _1 = 
CALCULATE(
    DISTINCTCOUNT('Table'[Week1]),
    ALLEXCEPT('Table', 'Table'[Customer]),
    'Table'[Week1] &amp;lt;&amp;gt; BLANK()
)
VAR _2 =
CALCULATE(
    DISTINCTCOUNT('Table'[Week2]),
    ALLEXCEPT('Table', 'Table'[Customer]),
    'Table'[Week2] &amp;lt;&amp;gt; BLANK()
)
RETURN
_2 - _1&lt;/LI-CODE&gt;
&lt;P&gt;And use this DAX to create another measure to filter the detail columns:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
IF(
    (MAX('Table'[Week1]) &amp;lt;&amp;gt; BLANK() &amp;amp;&amp;amp; MAX('Table'[Week2]) = BLANK()) || (MAX('Table'[Week1]) = BLANK() &amp;amp;&amp;amp; MAX('Table'[Week2]) &amp;lt;&amp;gt; BLANK()),
    1,
    0
)&lt;/LI-CODE&gt;
&lt;P&gt;Put the column &lt;STRONG&gt;Customer, Week1, Week2&lt;/STRONG&gt; and the measure &lt;STRONG&gt;Change&lt;/STRONG&gt; into the table visual:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And put the Measure 2 into the Filters on this visual:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And the final output is as below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 02:41:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-i-get-the-details-of-the-delta-between-weeks/m-p/4023997#M158928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T02:41:05Z</dc:date>
    </item>
  </channel>
</rss>

