<?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 Based On Multiple Crieria (sorry I searched, but couldn't find solution) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5001200#M187086</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;- Thank you so much! That resolved my issue. I have also accomplished the coloring with disconnected table where i just put the values of the metric column. Then dragged it into the matrix and applied the same code:&lt;/P&gt;&lt;P&gt;if( metric name = "BF Surveyable Events" &amp;amp;&amp;amp; [BF Surveyable Events] &amp;gt; 7 &amp;amp;&amp;amp; [BF Surveys] = 0, 1, 0 )&lt;BR /&gt;But this works only with disconnected table. However, your solution is simpler and more elegant. Thank you one more time.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2026 10:27:22 GMT</pubDate>
    <dc:creator>Atanas_Atanasov</dc:creator>
    <dc:date>2026-02-09T10:27:22Z</dc:date>
    <item>
      <title>Conditional Formatting Based On Multiple Crieria (sorry I searched, but couldn't find solution)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/4999332#M187072</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;I have a simple table loaded in power BI which looks like that (screenshot 1)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The metric column and the quarter columns are coming from a single table named "Quarterly Results" -&amp;nbsp;Quarterly Results[metric] and&amp;nbsp;Quarterly Results[Quarter].&lt;/P&gt;&lt;P&gt;The measure you are seeing is extremely simple:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Volumes =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Quarterly Volumes'&lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I put it in the values section of the matrix the metric and the quarters are slicing it.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now, here's my problem. I must create color coding which colors in red the quarter where&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BF Surveyable Events &amp;gt; 7 and&amp;nbsp;BF Surveys = 0.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As you can see, that would be FY25Q3 as marked here:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&lt;SPAN&gt;I've tried multiple solutions and none of them worked.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also created 2 new measures:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BF Surveyable Events =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;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SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then created a new measure which has the following syntax:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Check =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;calc_1&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[BF Surveyable Events]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;calc_2&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[BF Surveys]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;'Quarterly Volumes'&lt;/SPAN&gt;&lt;SPAN&gt;[Metric]&lt;/SPAN&gt;&lt;SPAN&gt; ) = &lt;/SPAN&gt;&lt;SPAN&gt;"BF Surveyable Events"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;calc_1&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;calc_2&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thinking to use it as a rule in my conditional formatting. So when it equals 1 to be red, otherwise black.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;But what it does its returning 1 to all values for&amp;nbsp;&lt;SPAN&gt;BF Surveyable Events like here:&lt;/SPAN&gt;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;And respectively, it colors my whole line in red. While I'd expect it to color only FY25Q3.&lt;/P&gt;&lt;P&gt;Can anyone help me with that please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;All due respect,&lt;/P&gt;&lt;P&gt;Atanas&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Feb 2026 15:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/4999332#M187072</guid>
      <dc:creator>Atanas_Atanasov</dc:creator>
      <dc:date>2026-02-06T15:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Based On Multiple Crieria (sorry I searched, but couldn't find solution)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/4999922#M187076</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363317" data-lia-user-login="Atanas_Atanasov" class="lia-mention lia-mention-user"&gt;Atanas_Atanasov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can use Visual Calculation(Select Your Visual and click on New Visual Calculation) to achieve the result shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;PFA PBIX.&lt;/P&gt;
&lt;P&gt;Please give Kudos or mark it as solution once confirmed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Praful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Feb 2026 10:33:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/4999922#M187076</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2026-02-07T10:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Based On Multiple Crieria (sorry I searched, but couldn't find solution)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/4999941#M187077</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="363317" data-lia-user-login="Atanas_Atanasov" class="lia-mention lia-mention-user"&gt;Atanas_Atanasov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Visual calculation is definately an option here but you can also modify your dax to do the same. I can see issue in your dax which has potential conatext issue. I would suggest to use selectedvalue function to get current values and that will work. You can share sample raw data if you want full dax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query, Mark this as solution if this helps, kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Neeraj Kumar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Feb 2026 11:20:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/4999941#M187077</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2026-02-07T11:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Based On Multiple Crieria (sorry I searched, but couldn't find solution)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5001200#M187086</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;- Thank you so much! That resolved my issue. I have also accomplished the coloring with disconnected table where i just put the values of the metric column. Then dragged it into the matrix and applied the same code:&lt;/P&gt;&lt;P&gt;if( metric name = "BF Surveyable Events" &amp;amp;&amp;amp; [BF Surveyable Events] &amp;gt; 7 &amp;amp;&amp;amp; [BF Surveys] = 0, 1, 0 )&lt;BR /&gt;But this works only with disconnected table. However, your solution is simpler and more elegant. Thank you one more time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 10:27:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5001200#M187086</guid>
      <dc:creator>Atanas_Atanasov</dc:creator>
      <dc:date>2026-02-09T10:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Based On Multiple Crieria (sorry I searched, but couldn't find solution)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5001342#M187088</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="826012" data-lia-user-login="divyed" class="lia-mention lia-mention-user"&gt;divyed&lt;/a&gt;&amp;nbsp;- thank you for the suggestion! As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;suggested I used visual calculation. I also resolved it with DAX and disconnected table. I think something might not be right with the report in general as I inherited it from another developer. Thank you one more time and wish you all the best,&lt;/P&gt;&lt;P&gt;Atanas&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2026 12:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5001342#M187088</guid>
      <dc:creator>Atanas_Atanasov</dc:creator>
      <dc:date>2026-02-09T12:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting Based On Multiple Crieria (sorry I searched, but couldn't find solution)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5002603#M187093</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="826012" data-lia-user-login="divyed" class="lia-mention lia-mention-user"&gt;divyed&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;- also I was able to do it with DAX today... there was sorting happening in the table. The metrics column was sorted by another column, so the order appears the same every time. So, basically:&lt;BR /&gt;CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [Volumes],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; REMOVEFILTERS( Quarterly Volumes[Order] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Quartertly Volumes[Metric] = "BF Surveyable Events"&lt;BR /&gt;) works like a charm now... I know it is a trivial problem, but really was not aware of it.&lt;BR /&gt;Biggest takeaway is if your DAX is not working as it should be always check that... mainly in calendar tables.&amp;nbsp;&lt;BR /&gt;Thank you both,&lt;BR /&gt;Atanas&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 07:35:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Formatting-Based-On-Multiple-Crieria-sorry-I/m-p/5002603#M187093</guid>
      <dc:creator>Atanas_Atanasov</dc:creator>
      <dc:date>2026-02-10T07:35:49Z</dc:date>
    </item>
  </channel>
</rss>

