<?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: Help to write DAX command for the color formatting conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4140540#M164533</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Thanks for your support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;It works for few matches and not for all Lui Yang .&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT size="2"&gt;if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?" is Yes and "Is the devaition between SOW Agreed scope and revised scope has major deviation?" is Yes --&amp;gt; Red&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;if "Is the CR raised?" is yes or No then keep it Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is No then keep it Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2" color="#008000"&gt;if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?" is Yes and "Is the devaition between SOW Agreed scope and revised scope has major deviation?" is No --&amp;gt; Amber&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes or No then keep it Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is No then keep it Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;BR /&gt;&lt;BR /&gt;Actually let me reclarify the scenario , if the &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;RED&lt;/FONT&gt; &lt;/STRONG&gt;line is matched then it will not go to &lt;STRONG&gt;&lt;FONT color="#008000"&gt;GREEN&lt;/FONT&gt; &lt;/STRONG&gt;line case and vice versa.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;RED batch :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Sometimes the end users will update only 1st 2 questions as "YES" and keep blank with next 2 , in that case the output is "&lt;FONT color="#FF0000"&gt;RED&lt;/FONT&gt;" only . here in your formula it seems we have to fill all the 4 questions , otherwise it is giving wrong output.&lt;BR /&gt;&lt;BR /&gt;For example : (4 inputs)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;this output is correct when 4 inputs are there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we remove last 2 inputs , then it is given wrong output as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;actual output should be "Amber" , but it is giving BLANK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope now it is understandable ..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 11:27:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-09T11:27:47Z</dc:date>
    <item>
      <title>Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4133474#M164179</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am working on the below condition to create a calculated column with the color combinations for each outputs from source and converted into conditional formatting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logic :&lt;/P&gt;&lt;P&gt;if "Do we have required resourcing for the project?"is no, then Amber&lt;/P&gt;&lt;P&gt;if "Are there attritions/Backfill delayed?" is Yes, then Amber&lt;/P&gt;&lt;P&gt;if "Are we having any skill issues in the team?" if Yes, then Red&lt;/P&gt;&lt;P&gt;if any one of them is red above, then Red, if none of them red and any one of them amber then Amber&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the above questions are already available in sharepoint list and end users can fill the input as Yes or No later.&lt;/P&gt;&lt;P&gt;I have written the DAX as below but in that i have mentioned "Green" color for else conditions , but instead of "Green" we have to use last line as a logic , so am struggling on that .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Resourcing logic = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;('Delivery Updates'[Dowehaverequiredresourcingforthe]=&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Amber"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;('Delivery Updates'[Arethereattritions/Backfil]=&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Amber"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;('Delivery Updates'[Arewehavinganyskillissuesinthete]=&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Red"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Green"&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;So far there is no input from end users , so the result is coming as "Green" only.&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;Please help to achieve this for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;DK&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Sep 2024 13:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4133474#M164179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-04T13:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4133490#M164183</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when you say "Last line" can you please specify what you want to include in else statement based on that you can replace the Green condition..&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Resourcing logic =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;('Delivery Updates'[Dowehaverequiredresourcingforthe]=&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Amber"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;('Delivery Updates'[Arethereattritions/Backfil]=&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Amber"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;('Delivery Updates'[Arewehavinganyskillissuesinthete]=&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Red"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;FONT color="#FF0000"&gt;Last line&lt;/FONT&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution and Your Kudos are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 13:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4133490#M164183</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-09-04T13:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4134589#M164229</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="796215" data-lia-user-login="dharmendars007" class="lia-mention lia-mention-user"&gt;dharmendars007&lt;/a&gt;&amp;nbsp; Last line means , last line from the logic ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logic :&lt;/P&gt;&lt;P&gt;if "Do we have required resourcing for the project?"is no, then Amber&lt;/P&gt;&lt;P&gt;if "Are there attritions/Backfill delayed?" is Yes, then Amber&lt;/P&gt;&lt;P&gt;if "Are we having any skill issues in the team?" if Yes, then Red&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if any one of them is red above, then Red, if none of them red and any one of them amber then Amber&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;instead of "Green" in my DAX i have to replace with the last line else condition &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 04:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4134589#M164229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-05T04:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4134751#M164234</link>
      <description>&lt;P&gt;Thanks for the reply from dharmendars007&amp;nbsp;, please allow me to provide another insight:&lt;BR /&gt;Hi&amp;nbsp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Resourcing logic =
var _if1=
IF('Table'[Dowehaverequiredresourcingforthe]="No","Amber",BLANK())
var _if2=
IF('Table'[Arethereattritions/Backfil]="Yes","Amber",BLANK())
var _if3=
IF('Table'[Arewehavinganyskillissuesinthete]="Yes","Red",BLANK())
var _text=
_if1&amp;amp;"-"&amp;amp;_if2&amp;amp;"-"&amp;amp;_if3
return
IF(
    CONTAINSSTRING(_text,"Red")=TRUE(),"Red","Amber")&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 06:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4134751#M164234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-05T06:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4135070#M164250</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Thanks a lot , it will work once end users are updating their input for those questions.&lt;/P&gt;&lt;P&gt;Also like this same i was struggling to get one more logic conditions as below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scope column logic :&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?" is Yes and "Is the devaition between SOW Agreed scope and revised scope has major deviation?" is Yes --&amp;gt; Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes or No then keep it Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is No then keep it Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?" is Yes and "Is the devaition between SOW Agreed scope and revised scope has major deviation?" is No --&amp;gt; Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes or No then keep it Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is No then keep it Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;All the above questions are already available in the Sharepoint list source , based on the above logics I have to create a column for the accounts and then i can convert those colors into icons by conditional formatting like below .&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have tried this below DAX but not sure whether it will work or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Scope logic=&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; [ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; &lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [IsthedevaitionbetweenSOWAgreedsc] = "Yes",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Red",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [istheCRraised?] = "Yes" &amp;amp;&amp;amp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [IstheCRapproved?] = "No",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Red",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; IF (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; [ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [IsthedevaitionbetweenSOWAgreedsc] = "No",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Amber",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; IF (&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [istheCRraised?] = "Yes" &amp;amp;&amp;amp;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [IstheCRapproved?] = "No",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Amber",&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Green"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; )))&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Please try to check and validate my DAX ?..&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 09:05:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4135070#M164250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-05T09:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4137657#M164358</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Hi , Can you help on the above one also ?&lt;/P&gt;&lt;P&gt;Thanks ..&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 13:10:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4137657#M164358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-06T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4140281#M164520</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not quite sure of the logic, I see multiple identical situations displayed twice in your description, but in different colors.&lt;/P&gt;
&lt;P&gt;Are you referring to the following:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In “if ‘Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?’ is Yes and ”Is the devaition between SOW Agreed scope and revised scope has major deviation?“ is Yes --&amp;gt; Red” scenario, “In your description you see multiple identical situations displayed twice, but in different colors. “Yes and “Is the CR approved?” is No, it stays Red&lt;/P&gt;
&lt;P&gt;In &amp;nbsp;“if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?"“ is Yes and “Is the devaition between SOW Agreed scope and revised scope has major deviation? Is “No --&amp;gt; Amber“ scenario, ‘If ’Is a CR proposed?” is yes and “Is a CR approved?” is no, then keep red amber color “.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try the following calculated columns&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
SWITCH(
    TRUE(),
    [Are there any changes between SOW Agreed Scope]="Yes" &amp;amp;&amp;amp; [Is the devaition between SOW Agreed scope and revised scope has major deviation]="Yes" &amp;amp;&amp;amp; [istheCRraised?]="Yes"&amp;amp;&amp;amp;[Is the CR approved]="No","Red",
    [Are there any changes between SOW Agreed Scope]="Yes" &amp;amp;&amp;amp; [Is the devaition between SOW Agreed scope and revised scope has major deviation]="No" &amp;amp;&amp;amp; [istheCRraised?]="Yes"&amp;amp;&amp;amp;[Is the CR approved]="No","Amber",
    [istheCRraised?]="Yes"&amp;amp;&amp;amp;[Is the CR approved]="Yes","Green",BLANK())&lt;/LI-CODE&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 08:48:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4140281#M164520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-09T08:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4140540#M164533</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Anonymous&lt;/a&gt;&amp;nbsp; Thanks for your support &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#800080"&gt;It works for few matches and not for all Lui Yang .&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT size="2"&gt;if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?" is Yes and "Is the devaition between SOW Agreed scope and revised scope has major deviation?" is Yes --&amp;gt; Red&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;if "Is the CR raised?" is yes or No then keep it Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is No then keep it Red&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2" color="#008000"&gt;if "Are there any changes between SOW Agreed Scope &amp;amp; Revised Scope?" is Yes and "Is the devaition between SOW Agreed scope and revised scope has major deviation?" is No --&amp;gt; Amber&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes or No then keep it Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is No then keep it Amber&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;BR /&gt;&lt;BR /&gt;Actually let me reclarify the scenario , if the &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;RED&lt;/FONT&gt; &lt;/STRONG&gt;line is matched then it will not go to &lt;STRONG&gt;&lt;FONT color="#008000"&gt;GREEN&lt;/FONT&gt; &lt;/STRONG&gt;line case and vice versa.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;RED batch :&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Sometimes the end users will update only 1st 2 questions as "YES" and keep blank with next 2 , in that case the output is "&lt;FONT color="#FF0000"&gt;RED&lt;/FONT&gt;" only . here in your formula it seems we have to fill all the 4 questions , otherwise it is giving wrong output.&lt;BR /&gt;&lt;BR /&gt;For example : (4 inputs)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;this output is correct when 4 inputs are there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we remove last 2 inputs , then it is given wrong output as below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;actual output should be "Amber" , but it is giving BLANK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope now it is understandable ..&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 11:27:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4140540#M164533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-09T11:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help to write DAX command for the color formatting conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4142009#M164614</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Hi Yang ,&lt;/P&gt;&lt;P&gt;In the above solution , it is fine when all the questions are answered (Yes or No) , but some accounts are not updated yet and that also showing as "Amber".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;Now all the 3 fields are blank now for all the accounts , in that case it should give BLANK values in tha table too but it is showing "Amber" as below :&lt;/P&gt;&lt;P&gt;&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;&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;Requirement is "if all the fields are blank then respective account resourcing column also should be blank , if any one of them is answered others are blank then based on the answered one the column should reflect" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to include that conditions on this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 05:49:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-to-write-DAX-command-for-the-color-formatting-conditions/m-p/4142009#M164614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-10T05:49:07Z</dc:date>
    </item>
  </channel>
</rss>

