<?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: Get difference between 2 columns of power bi matrix from selected filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352958#M24404</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256504" data-lia-user-login="Crystal_YW" class="lia-mention lia-mention-user"&gt;Crystal_YW&lt;/a&gt;&amp;nbsp;- Not sure I fully understand, use AVERAGEX instead of SUMX?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 01:05:27 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-09-08T01:05:27Z</dc:date>
    <item>
      <title>Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1349323#M24249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table of students with weekly test scores. I need to be able to get the difference of the quiz scores in a matrix based on a filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Weekending Date&lt;/TD&gt;&lt;TD&gt;Test Date&lt;/TD&gt;&lt;TD&gt;Student Name&lt;/TD&gt;&lt;TD&gt;Test Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 7&lt;/TD&gt;&lt;TD&gt;Aug 3&lt;/TD&gt;&lt;TD&gt;Ron&lt;/TD&gt;&lt;TD&gt;95%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 7&lt;/TD&gt;&lt;TD&gt;Aug 3&lt;/TD&gt;&lt;TD&gt;Rudy&lt;/TD&gt;&lt;TD&gt;89%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 7&lt;/TD&gt;&lt;TD&gt;Aug 6&lt;/TD&gt;&lt;TD&gt;James&lt;/TD&gt;&lt;TD&gt;87%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 7&lt;/TD&gt;&lt;TD&gt;Aug 5&lt;/TD&gt;&lt;TD&gt;Ron&lt;/TD&gt;&lt;TD&gt;91%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 14&lt;/TD&gt;&lt;TD&gt;Aug 11&lt;/TD&gt;&lt;TD&gt;Rudy&lt;/TD&gt;&lt;TD&gt;87%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 21&lt;/TD&gt;&lt;TD&gt;Aug 18&lt;/TD&gt;&lt;TD&gt;James&lt;/TD&gt;&lt;TD&gt;93%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 14&lt;/TD&gt;&lt;TD&gt;Aug 12&lt;/TD&gt;&lt;TD&gt;Ron&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 14&lt;/TD&gt;&lt;TD&gt;Aug 12&lt;/TD&gt;&lt;TD&gt;Rudy&lt;/TD&gt;&lt;TD&gt;92%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Aug 21&lt;/TD&gt;&lt;TD&gt;Aug 17&lt;/TD&gt;&lt;TD&gt;Ron&lt;/TD&gt;&lt;TD&gt;85%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Selected filter weekending dates (Aug 7 &amp;amp; Aug 21) - selection may vary depending on preferred weekending dates to compare.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matrix should show difference of average weekly scores of students. If one of the weekly score average is blank (meaning the student did not take any test on that week), the difference should be blank)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Student Name&lt;/TD&gt;&lt;TD&gt;Aug 7 Average Test Score&lt;/TD&gt;&lt;TD&gt;Aug 21 Average Test Score&lt;/TD&gt;&lt;TD&gt;Difference&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Ron&lt;/TD&gt;&lt;TD&gt;93%&lt;/TD&gt;&lt;TD&gt;85%&lt;/TD&gt;&lt;TD&gt;-8%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;James&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;87%&lt;/TD&gt;&lt;TD&gt;93%&lt;/TD&gt;&lt;TD&gt;6%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Rudy&lt;/TD&gt;&lt;TD&gt;89%&lt;/TD&gt;&lt;TD&gt;blank&lt;/TD&gt;&lt;TD&gt;blank&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several solutions from this forum but I cannot get it to work. I am getting the wrong difference. I really appreciate your help. In addition, I need the difference column to have conditional formatting to highlight the positive values as green and the negative as red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers and stay safe,&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 02:34:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1349323#M24249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-06T02:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1349329#M24251</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- So, I did it like this so that your total column displays the difference between the two scores:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 5 = 
    VAR __Average = AVERAGE('Table (15)'[Test Score])
RETURN
    IF(HASONEVALUE('Table (15)'[Weekending Date]),__Average,
        VAR __Min = MIN([Weekending Date])
        VAR __Max = MAX([Weekending Date])
        RETURN
            AVERAGEX(FILTER('Table (15)',[Weekending Date]=__Min),[Test Score]) - 
            AVERAGEX(FILTER('Table (15)',[Weekending Date]=__Max),[Test Score]))&lt;/LI-CODE&gt;
&lt;P&gt;PBIX is attached. Table (15), Page (15), Measure 5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2020 02:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1349329#M24251</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-06T02:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1349429#M24255</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , You can create a date or week calendar and Date calendar and Have week Rank there and then you can use that to find Avg of this week vs last week.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date or week Table to have these columns&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Week Start date = 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1
Week End date = 'Date'[Date]+ 7-1*WEEKDAY('Date'[Date],2)
Week Number = WEEKNUM([Date],2)
Week = if('Date'[Week Number]&amp;lt;10,'Date'[Year]*10 &amp;amp; 'Date'[Week Number],'Date'[Year]&amp;amp;'Date'[Week Number])
Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense)	
Week name = [Week Start date] &amp;amp; " to "&amp;amp; [Week End date]
Weekday = WEEKDAY([Date],2)
WeekDay Name = FORMAT([Date],"ddd")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;This Week = CALCULATE(sum('Table'[Test Score]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE(sum('Table'[Test Score]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))

diff = [This Week]-[Last Week]
diff % = divide([This Week]-[Last Week],[Last Week])
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer for more details&lt;/P&gt;
&lt;P&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&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>Sun, 06 Sep 2020 05:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1349429#M24255</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-06T05:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350110#M24319</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not know why my reply yesterday did not post but here is what happened when I tried&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;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using it in my total does not display accurate values but using it in a different matrix with student name and difference column works. However, I still have 2 issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Negative values are not showing negative. if 2nd week is lower it should show a decrease or negative difference. (I got this to show negative by putting the max before the min (max - min)&lt;/LI&gt;&lt;LI&gt;If either 1st or 2nd week is blank, the difference still shows a value instead of a blank. (this remains unresolved. I tried an if formula but it did nothing)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thank you for your speedy and awesome response.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 01:03:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350110#M24319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T01:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350146#M24321</link>
      <description>&lt;P&gt;Thank you for your solution&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; but I couldn't get the Date table to show the correct week start date and week end date. week starts on a saturday and ends on a friday.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 00:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350146#M24321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T00:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350181#M24324</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, I have a calendar that contains week start and week end for any week day&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All possible 7 combinations are covered&lt;/P&gt;
&lt;P&gt;Find file at&amp;nbsp;&lt;A href="https://www.dropbox.com/s/u8g7u1ra61raiuh/Every_Weekday_cal.pbix?dl=0" target="_blank"&gt;https://www.dropbox.com/s/u8g7u1ra61raiuh/Every_Weekday_cal.pbix?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 01:07:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350181#M24324</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-07T01:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350326#M24332</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;- Funny, I was actually trying to fix the blanks issue and I cannot currently find a way to do it. I tried like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 5 = 
    VAR __Average = AVERAGE('Table (15)'[Test Score])
RETURN
    IF(HASONEVALUE('Table (15)'[Weekending Date]),__Average,
            VAR __Min = MIN([Weekending Date])
            VAR __Max = MAX([Weekending Date])
            VAR __AverageMin = AVERAGEX(FILTER('Table (15)',[Weekending Date]=__Min),[Test Score])
            VAR __AverageMax = AVERAGEX(FILTER('Table (15)',[Weekending Date]=__Max),[Test Score])
        RETURN
            //__Min &amp;amp; "-" &amp;amp; __Max
            IF(ISBLANK(__AverageMin) || ISBLANK(__AverageMax),BLANK(),
                __Max
            )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Still looking at it.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 01:54:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1350326#M24332</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-07T01:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1351051#M24358</link>
      <description>&lt;P&gt;Hello, is this what you want as follows:&lt;/P&gt;&lt;P&gt;but I made it simple without calendar, maybe you could tailormaid the data model by your self&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 07:23:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1351051#M24358</guid>
      <dc:creator>Crystal_YW</dc:creator>
      <dc:date>2020-09-07T07:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352155#M24380</link>
      <description>&lt;P&gt;Appreciate you looking into this. Will wait for your update. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352155#M24380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352157#M24381</link>
      <description>&lt;P&gt;Will try this out and let you know if it gives the results I am looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:52:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352157#M24381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352773#M24393</link>
      <description>&lt;P&gt;Thank you very much! Your code resolved the blank results but the difference does not seem to be accurate and it is not converting to %.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I very much appreciate your effort. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 22:26:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352773#M24393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-07T22:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352940#M24403</link>
      <description>&lt;P&gt;hello, I know where the issue is in my code. As I use sumx to aggregate the average result on max weekend date choose, whenever there is more than one test score, the average result would be double counted. I would fix it&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 01:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352940#M24403</guid>
      <dc:creator>Crystal_YW</dc:creator>
      <dc:date>2020-09-08T01:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352958#M24404</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256504" data-lia-user-login="Crystal_YW" class="lia-mention lia-mention-user"&gt;Crystal_YW&lt;/a&gt;&amp;nbsp;- Not sure I fully understand, use AVERAGEX instead of SUMX?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 01:05:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352958#M24404</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-08T01:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352987#M24405</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I've fixed the issues and I've add some more test score to double check my code and it's accurate.&amp;nbsp; only one variable was added and use divide in the new column&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;by the way, for the % format , just click the measure and change the formatting on the ribbon to %, easy to resolve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code is little bit verbose and hope I could make it shorter later&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 01:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1352987#M24405</guid>
      <dc:creator>Crystal_YW</dc:creator>
      <dc:date>2020-09-08T01:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353006#M24406</link>
      <description>&lt;P&gt;&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;still use averagex to calculate the average score. But I use sumx to get the final difference, which result in double count. Now it fixed&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 01:21:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353006#M24406</guid>
      <dc:creator>Crystal_YW</dc:creator>
      <dc:date>2020-09-08T01:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353521#M24415</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256504" data-lia-user-login="Crystal_YW" class="lia-mention lia-mention-user"&gt;Crystal_YW&lt;/a&gt;&amp;nbsp;. % is now okay, there was just a delay earlier when I hit the % formatting however I am still getting inaccurate results when I applied your code. a difference of -1.11% is giving me -0.08% and -1.47% is giving me -0.15% and -19.90% is giving me -3.06% &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 05:11:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353521#M24415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-08T05:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353554#M24416</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;hi, figures were accurate in my report. maybe you could upload your pbix file, let me check what is wrong with the formula&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 05:25:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353554#M24416</guid>
      <dc:creator>Crystal_YW</dc:creator>
      <dc:date>2020-09-08T05:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353567#M24417</link>
      <description>&lt;P&gt;I am sorry &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256504" data-lia-user-login="Crystal_YW" class="lia-mention lia-mention-user"&gt;Crystal_YW&lt;/a&gt;&amp;nbsp; we have some sensitive information in our data. I really appreciate your effort. Your code looks great but is it possible to collaborate with&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;&amp;nbsp;to resolve the blank issue with his code?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 05:35:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1353567#M24417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-08T05:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1356151#M24508</link>
      <description>&lt;P&gt;I have a question to check if I understood your code correctly,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="256504" data-lia-user-login="Crystal_YW" class="lia-mention lia-mention-user"&gt;Crystal_YW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You only used the maxweek to count rows and then divided the difference of max and min week averages by maxweektimes. How about if the min week countrows is not the same as the maxweek count rows. Will this cause the inaccurate result?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 21:05:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1356151#M24508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-08T21:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get difference between 2 columns of power bi matrix from selected filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1356266#M24510</link>
      <description>&lt;P&gt;Thank you for the reference&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;however, I do not see a code for Sat-Fri.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 22:13:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-difference-between-2-columns-of-power-bi-matrix-from/m-p/1356266#M24510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-08T22:13:18Z</dc:date>
    </item>
  </channel>
</rss>

