<?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 calculation groups and conditional formatting issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculation-groups-and-conditional-formatting-issue/m-p/3797666#M148424</link>
    <description>&lt;P&gt;Hello everone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am facing an issue with conditional formatting when am using the matrix visual with calculation groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you will see in the picture below, the conditional formatting for the expenses lines will give me a positive variance% as the actual is higher than the budget or the last year&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;is there a way to multiply the expense lines with -1? here is my data table in case it helps.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i need to change the data setup please infrom me what is the best way to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2024 20:57:15 GMT</pubDate>
    <dc:creator>AhmadImbaidin</dc:creator>
    <dc:date>2024-03-28T20:57:15Z</dc:date>
    <item>
      <title>calculation groups and conditional formatting issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculation-groups-and-conditional-formatting-issue/m-p/3797666#M148424</link>
      <description>&lt;P&gt;Hello everone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am facing an issue with conditional formatting when am using the matrix visual with calculation groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you will see in the picture below, the conditional formatting for the expenses lines will give me a positive variance% as the actual is higher than the budget or the last year&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;is there a way to multiply the expense lines with -1? here is my data table in case it helps.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i need to change the data setup please infrom me what is the best way to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 20:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculation-groups-and-conditional-formatting-issue/m-p/3797666#M148424</guid>
      <dc:creator>AhmadImbaidin</dc:creator>
      <dc:date>2024-03-28T20:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: calculation groups and conditional formatting issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculation-groups-and-conditional-formatting-issue/m-p/3798319#M148456</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I recommend using SWITCH to achieve this. In practice this would be something like this:&lt;BR /&gt;&lt;BR /&gt;P&amp;amp;L measure = var _line = MAX('Table'[Account]) return&lt;BR /&gt;SWITCH(TRUE(),&lt;BR /&gt;_line = "Total Other Exp.", -1*[P&amp;amp;L SUM],&lt;BR /&gt;_line = "Revenue" , [P&amp;amp;L SUM])&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here you should include logic for all the different cases. The two above are just examples. [P&amp;amp;L SUM] should contain sum of relevant accounts. Additionally I do hope your data is mock data. It is not a good idea to post accounting data to any forum.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 07:44:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculation-groups-and-conditional-formatting-issue/m-p/3798319#M148456</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2024-03-29T07:44:54Z</dc:date>
    </item>
  </channel>
</rss>

