<?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: Comparison with previous value in matrix and show up down icon in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261134#M20987</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;Can you share the pbix file again I can't see that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 07:42:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-30T07:42:48Z</dc:date>
    <item>
      <title>Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1260965#M20980</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a matrix and in that matrix am trying to compare the value in W2 column with the value in W1 column (means current column with the previous column) and based on that am trying to show up, down arrow icon. I am able to create the matrix but not able to do the comparison part and icon showing part. Can anyone please help me. I have attached sample pbix file and screenshot&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 06:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1260965#M20980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T06:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1260988#M20982</link>
      <description>&lt;P&gt;HI&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=BbuikATa3ow" target="_blank"&gt;https://www.youtube.com/watch?v=BbuikATa3ow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=MAISRa88bl0" target="_blank"&gt;https://www.youtube.com/watch?v=MAISRa88bl0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 06:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1260988#M20982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T06:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261079#M20986</link>
      <description>&lt;P&gt;I know how to apply conditional formatting but the thing is here I want to compare the values in a column based on other column&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261079#M20986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T07:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261134#M20987</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;Can you share the pbix file again I can't see that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261134#M20987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T07:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261164#M20989</link>
      <description>&lt;P&gt;You can download the file from below link:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://dl.dropboxusercontent.com/s/btmcxqq9bzg5kr4/Test.pbix?dl=0" target="_blank"&gt;http://dl.dropboxusercontent.com/s/btmcxqq9bzg5kr4/Test.pbix?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 07:56:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261164#M20989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T07:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261522#M21006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this measure.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Compare W2 With W1 = 
VAR WAVE =
    SELECTEDVALUE ( Sheet1[Wave] )
VAR Country =
    SELECTEDVALUE ( Sheet1[Country] )
VAR s =
    CALCULATE ( SUM ( Sheet1[Sales] ) )
VAR FiltereTable1 =
    FILTER ( ALL ( Sheet1 ), Sheet1[Wave] = "W1" &amp;amp;&amp;amp; Sheet1[Country] = Country )
VAR W1 =
    SUMX ( FiltereTable1, Sheet1[Sales] )
VAR RESULT =
    SWITCH ( TRUE ()
    , WAVE = "W2" &amp;amp;&amp;amp; s &amp;gt; W1, 1
    , WAVE = "W2" &amp;amp;&amp;amp; s &amp;lt;= W1, 2
    , 0 )
RETURN
    RESULT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apply background color conditional formatting as below to get the idea how it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works in case you just want to Compare W2 with W1. However there are other scenarios like, if you want to compare (W3 with W1) or (W4 with W1) and so on; then you will have to add more conditions in SWITCH.&lt;/P&gt;&lt;P&gt;If that's the case you should also consider that how this can be tackled when your Waves Column will have more values like(W5, W6 ... Wn).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 09:30:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261522#M21006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison with previous value in matrix and show up down icon</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261644#M21012</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;Thanks for the reply but this can be applied when you know the number of waves you have. Right now we have 8 waves and in future there will be many more then how we will tackle this? And the solution you have provided is am already using as an alternative.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 10:05:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparison-with-previous-value-in-matrix-and-show-up-down-icon/m-p/1261644#M21012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T10:05:25Z</dc:date>
    </item>
  </channel>
</rss>

