<?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: Background Color Conditional Format Based on External Rules in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972111#M43341</link>
    <description>&lt;P&gt;Thanks. But, wouldn't that create a calculation Error, since the forecast is not same for the entire country, it varies with the state. And i need to find the variance for each state. &amp;lt;Sorry if i havent understood this correctly&amp;gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 06:40:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-22T06:40:35Z</dc:date>
    <item>
      <title>Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1971996#M43336</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The Table on the left is actual aggregated value of sales across different states/Countries. While the table on left is a static table which has forecasted sales for each country/state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get the measure Sum Sales background colored based on the forecast raw input table. Currently I'm able to achieve this using a if else statement but it becomes too complex for huge list of countries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be a easy fix for this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:02:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1971996#M43336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-22T06:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972094#M43337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Create one measure to compare the two values:&lt;BR /&gt;SumVsForecast= SUM(Forecast Sales)- SUM(SumSales)&lt;BR /&gt;&lt;BR /&gt;Then apply conditional formatting to the Sum Sales column:&lt;BR /&gt;Conditional formatting-&amp;gt; Background Color -&amp;gt; Format by : Rules -&amp;gt; Based on Field- SumVsForecast&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If value is greater than equal to MIN number and less than equal to 0 number then choose the color&lt;BR /&gt;Add new rule:&lt;BR /&gt;If value is greater than equal to 0 number and less than equal to MAX number then choose the color&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;BR /&gt;&lt;EM&gt;Mark this as a solution if it anwsers your question. Kudos are always appreciated!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972094#M43337</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-07-22T06:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972097#M43339</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt;&amp;nbsp;, I'll give it a try. Meanwhile, would I require these two tables to be joined on state and country?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:28:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972097#M43339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-22T06:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972106#M43340</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;, Yes join them on country.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:36:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972106#M43340</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-07-22T06:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972111#M43341</link>
      <description>&lt;P&gt;Thanks. But, wouldn't that create a calculation Error, since the forecast is not same for the entire country, it varies with the state. And i need to find the variance for each state. &amp;lt;Sorry if i havent understood this correctly&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:40:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972111#M43341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-22T06:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972170#M43342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please find the attached file:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/sh/g4o6nz77gj8w6mc/AAAcsP3FMJ83PZvyqCB53ILAa?dl=0" target="_blank"&gt;https://www.dropbox.com/sh/g4o6nz77gj8w6mc/AAAcsP3FMJ83PZvyqCB53ILAa?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 07:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972170#M43342</guid>
      <dc:creator>Tanushree_Kapse</dc:creator>
      <dc:date>2021-07-22T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972250#M43348</link>
      <description>&lt;P&gt;Thank you for the file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the provided file the join is based on State, which in this example are not unique. And as soon as I have additional record in the agg table which has the same state, it errors out.&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;&lt;img /&gt;&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;</description>
      <pubDate>Thu, 22 Jul 2021 07:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972250#M43348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-22T07:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Background Color Conditional Format Based on External Rules</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972382#M43352</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="281080" data-lia-user-login="Tanushree_Kapse" class="lia-mention lia-mention-user"&gt;Tanushree_Kapse&lt;/a&gt;&amp;nbsp; Thanks for your comments. I got the gist of the solution. A calculated column and a measure as you suggested should together help solve this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So this is what i did.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 1 : Created a calculated column which is made by&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Forecasted Value = LOOKUPVALUE(Reference[Forecast Sales 1],Reference[Country],'Fact'[Country],Reference[State],'Fact'[State])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Step 2: Created a measure called variance as&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Variance = SUM('Fact'[Sum Sales]) - AVERAGE('Fact'[Forecasted Value])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 08:18:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Background-Color-Conditional-Format-Based-on-External-Rules/m-p/1972382#M43352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-22T08:18:27Z</dc:date>
    </item>
  </channel>
</rss>

