<?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: Conditional Formatting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4076288#M161851</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to factor "No trend" in to the "Trend" column (due to them not participating), because technically they didn't improve(or decline)? For the ones who originally had no score, they shouldn't have a trend.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 14:56:45 GMT</pubDate>
    <dc:creator>e175429</dc:creator>
    <dc:date>2024-08-02T14:56:45Z</dc:date>
    <item>
      <title>Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4069571#M161563</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a part of my curent table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the "Score Trend", instead of it saying Decline, No change, Improvemement, I would like it to instead show a arrow going up&lt;/P&gt;&lt;P&gt;(for improvement), down (for decline), and a dash &lt;span class="lia-unicode-emoji" title=":heavy_minus_sign:"&gt;➖&lt;/span&gt; (for no improvement) and then I don't want the words to show either.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 16:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4069571#M161563</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-07-30T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4070107#M161587</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the sample table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new measure to &lt;/SPAN&gt;&lt;SPAN&gt;calculate score change.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Score change = 
var _last = SUMX('Table', 'Table'[Last Score])
var _current = SUMX('Table', 'Table'[Current Score])
RETURN
DIVIDE(_current - _last, 100)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Create the new measure to &lt;/SPAN&gt;&lt;SPAN&gt;filter the score trend.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Score trend = 
IF([Score change] &amp;gt; 0, "Improvement", 
    IF([Score change] &amp;lt; 0 , "Decline", "N/A")
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.Select the Score trend &amp;gt; conditional formatting &amp;gt; Icons.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;5.Select Rules &amp;gt; Score trend &amp;gt; Icons only. Set the Rules. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;6.&lt;/SPAN&gt;&lt;SPAN&gt;The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 01:42:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4070107#M161587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-31T01:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4071038#M161614</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1. First Create data in Power BI using the enter data option in the home tab&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2. After that create the calculated column and get the Difference in Sales&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. After that create the sale changes&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;4. Select the Sale trend &amp;gt; conditional formatting &amp;gt; Icons.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;5. Select Rules &amp;amp;gt; Score trend &amp;amp;gt; Icons only. Set the Rules.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;6. The result is shown below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; and help other users find the solution quickly. Please hit the LIKE &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; button if this comment helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 09:44:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4071038#M161614</guid>
      <dc:creator>Ray_Minds</dc:creator>
      <dc:date>2024-07-31T09:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4072159#M161667</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your response.&lt;/P&gt;&lt;P&gt;I am getting the following error when calculating the score change:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And I can't calculate the score trend until I score change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I am getting this error is because there are some people with no scores in the Last Score column. Currently, for those people, it says "N/A". They don't have a "Last Score" but they do have a "Current Score".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I purposely did not write 0 in their "'Last Score" column because I don't want that to be confused with their current score and having "No Improvement". It's not that they didn't improve, they just were not involved the first go around.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does that make sense? So, as the error says, SUMX cannot work on values with "N/A" in it. And I understand that. But what should I put in place of "N/A"?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 21:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4072159#M161667</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-07-31T21:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4075496#M161816</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the sample table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new column to filter the N/A.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;filterlastscore = IF('Table 2'[Last Score] = "N/A", BLANK(), 'Table 2'[Last Score])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;.Create the new column to calculate the score change. Change the column format to percentage.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Score change = DIVIDE('Table 2'[Current Score] - 'Table 2'[filterlastscore], 100)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4.Create the new measure to &lt;/SPAN&gt;&lt;SPAN&gt;calculate score trend.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Scoretren = 
IF([Score change] &amp;gt; 0, "Improvement", 
    IF([Score change] &amp;lt; 0 , "Decline", "N/A")
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 08:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4075496#M161816</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-02T08:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4076288#M161851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to factor "No trend" in to the "Trend" column (due to them not participating), because technically they didn't improve(or decline)? For the ones who originally had no score, they shouldn't have a trend.&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 14:56:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4076288#M161851</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-08-02T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4076739#M161883</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured it out. I had to combine a IF AND statement.&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;Results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you sooooo much for your help. I would have been stuck forever.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 19:46:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting/m-p/4076739#M161883</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-08-02T19:46:53Z</dc:date>
    </item>
  </channel>
</rss>

