<?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: Using the Min Number to do conditional formatting in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-the-Min-Number-to-do-conditional-formatting/m-p/3910297#M152293</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can produce your required output by wrapping the table with 'all' to ignore row filter context in Minx function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Minx = minx(all('Table'),'Table'[Reprint Rate])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Then you can use the conditional formatting on the measure to specify the color as you require.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach an example pbix file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 May 2024 05:24:21 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2024-05-11T05:24:21Z</dc:date>
    <item>
      <title>Using the Min Number to do conditional formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-the-Min-Number-to-do-conditional-formatting/m-p/3910193#M152290</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table where I'm trying to perform conditional formatting. I have a measure where I'm calculating the MIN of the Reprint Rate Column. However, there's something funky going on where there's no relationship to the row and so I can't compare the reprint rate to the Best in Network measure.&lt;BR /&gt;Ultimately, I'd like to compare the Reprint Rate against the Best in Network and if its the value then it should be green otherwise red.&lt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t;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Best in Network]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Does anyone have any recommendations? THANK YOU IN ADVANCE!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 03:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-the-Min-Number-to-do-conditional-formatting/m-p/3910193#M152290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-11T03:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Min Number to do conditional formatting</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-the-Min-Number-to-do-conditional-formatting/m-p/3910297#M152293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can produce your required output by wrapping the table with 'all' to ignore row filter context in Minx function.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Minx = minx(all('Table'),'Table'[Reprint Rate])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Then you can use the conditional formatting on the measure to specify the color as you require.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach an example pbix file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2024 05:24:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-the-Min-Number-to-do-conditional-formatting/m-p/3910297#M152293</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-11T05:24:21Z</dc:date>
    </item>
  </channel>
</rss>

