<?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: Colour Conditional Formating in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3549754#M136541</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650216" data-lia-user-login="elliegri" class="lia-mention lia-mention-user"&gt;elliegri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is what i meant by formatting the values based on heirarchy with HASONEVALUE() - except, just replace Orange with the rules you need for when there's more than 1 practice.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 21:44:35 GMT</pubDate>
    <dc:creator>vicky_</dc:creator>
    <dc:date>2023-11-23T21:44:35Z</dc:date>
    <item>
      <title>Colour Conditional Formating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3546580#M136375</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am new to Power BI and I am trying to create a graph that drills down from month to days to PCN to Practice - (I am working in healthcare). I have done this however I need to match the Practice and PCN to their individual colours.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have managed to set up data sheet and a Measure which pulls these however when there is more than one practice in the PCN, it does not return the correct PCN colour. Therefore I need to set up a Measure which explain that if more than one practice is returned, choose the colour of the practice.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So far I have this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Data Color Admin =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;lookupvalue&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;'PCN &amp;amp; Practice colour'&lt;/SPAN&gt;&lt;SPAN&gt;[Colour]&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;'PCN &amp;amp; Practice colour'&lt;/SPAN&gt;&lt;SPAN&gt;[Practice]&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;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'BP Admin Calls'&lt;/SPAN&gt;&lt;SPAN&gt;[Registered practice]&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;"#374A92"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If you can help, this will save me more hours of research!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Nov 2023 11:08:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3546580#M136375</guid>
      <dc:creator>elliegri</dc:creator>
      <dc:date>2023-11-22T11:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Colour Conditional Formating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3547701#M136439</link>
      <description>&lt;P&gt;As you've noticed, the issue arises when there's more than 1 practice - and this is because the SELECTEDVALUE() function returns a blank in that case, so the lookup fails. One way around this is by wrapping your lookup in HASONEVALUE() - i.e:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Data Colour Admin = IF(HASONEVALUE(Table[Practice]), 
    // simply look up the colour..., 
    // else, your fallback logic here
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Nov 2023 22:12:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3547701#M136439</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-11-22T22:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Colour Conditional Formating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3549754#M136541</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="650216" data-lia-user-login="elliegri" class="lia-mention lia-mention-user"&gt;elliegri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is what i meant by formatting the values based on heirarchy with HASONEVALUE() - except, just replace Orange with the rules you need for when there's more than 1 practice.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 21:44:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3549754#M136541</guid>
      <dc:creator>vicky_</dc:creator>
      <dc:date>2023-11-23T21:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Colour Conditional Formating</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3550475#M136572</link>
      <description>&lt;P&gt;Great - thanks so much&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 09:08:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Colour-Conditional-Formating/m-p/3550475#M136572</guid>
      <dc:creator>elliegri</dc:creator>
      <dc:date>2023-11-24T09:08:36Z</dc:date>
    </item>
  </channel>
</rss>

