<?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: Write DAX on multiple IF condition with the color formatting column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4140185#M164515</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your DAX formula needs to account for all conditions and their priorities. Here’s a revised version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;DAX&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;Scope logic = SWITCH ( TRUE (), [ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "Yes", "Red", [istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "No", "Red", [ArethereanychangesbetweenSOWAgreedsc] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "No", "Amber", [istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "Yes", "Green", "Amber" )&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;This approach uses SWITCH with TRUE to handle multiple conditions more clearly. Adjust as needed based on your exact requirements.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 09 Sep 2024 08:10:07 GMT</pubDate>
    <dc:creator>abuislam</dc:creator>
    <dc:date>2024-09-09T08:10:07Z</dc:date>
    <item>
      <title>Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4139876#M164482</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I am working and struggling to get one of the IF logic conditions as below :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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;&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 like below .&lt;/FONT&gt;&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;I have tried this below DAX but not working as expected.&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 help to solve this DAX ?..&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>Mon, 09 Sep 2024 05:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4139876#M164482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-09T05:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4139881#M164484</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Instead of using nested IFs you can use SWITCH + TRUE:&lt;BR /&gt;&lt;BR /&gt;ScopeLogic = &lt;BR /&gt;SWITCH(TRUE(),&lt;BR /&gt;[ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "Yes", "Red",&lt;BR /&gt;[istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "No", "Red",&lt;BR /&gt;[ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "No", "Amber",&lt;BR /&gt;[istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "No", "Amber",&lt;BR /&gt;"Green"&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;With this approach if some of the rows is not working as expected it is easier to troubleshoot and add new options.&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 05:38:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4139881#M164484</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2024-09-09T05:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4139923#M164492</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;Thanks for your solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;if "Is the CR raised?" is yes and "Is the CR approved?" is yes then change it to Green&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this above lines are not included in both the 2 conditions , is it works still ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 06:07:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4139923#M164492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-09T06:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4140185#M164515</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your DAX formula needs to account for all conditions and their priorities. Here’s a revised version:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;DAX&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;Scope logic = SWITCH ( TRUE (), [ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "Yes", "Red", [istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "No", "Red", [ArethereanychangesbetweenSOWAgreedsc] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "No", "Amber", [istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "Yes", "Green", "Amber" )&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;This approach uses SWITCH with TRUE to handle multiple conditions more clearly. Adjust as needed based on your exact requirements.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Sep 2024 08:10:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4140185#M164515</guid>
      <dc:creator>abuislam</dc:creator>
      <dc:date>2024-09-09T08:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4140560#M164536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;In the formula I provided green is fallback color so if other checks don't have a match the color is green.&lt;BR /&gt;&lt;SPAN&gt;ScopeLogic =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SWITCH(TRUE(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "Yes", "Red",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "No", "Red",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ArethereanychangesbetweenSOWAgre] = "Yes" &amp;amp;&amp;amp; [IsthedevaitionbetweenSOWAgreedsc] = "No", "Amber",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[istheCRraised?] = "Yes" &amp;amp;&amp;amp; [IstheCRapproved?] = "No", "Amber",&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;"Green"&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 11:44:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4140560#M164536</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2024-09-09T11:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4217317#M167131</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;&lt;SPAN&gt;Did&amp;nbsp;ValtteriN&amp;nbsp;'s and abuislam&amp;nbsp;'s&amp;nbsp;methods solve your problem? If yes, could you please mark them as solutions? This will help more users who are facing the same or similar difficulties. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you still have questions, please feel free to ask me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 08:48:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4217317#M167131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-04T08:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Write DAX on multiple IF condition with the color formatting column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4217383#M167132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; Yes will mark it .&lt;BR /&gt;Currently i am stuck with the following query which is also posted in the community.&lt;BR /&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Cannot-add-measure-as-legend-in-pie-chart/m-p/4214858#M1324538" target="_self"&gt;https://community.fabric.microsoft.com/t5/Desktop/Cannot-add-measure-as-legend-in-pie-chart/m-p/4214858#M1324538&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help on this ..&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 08:59:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Write-DAX-on-multiple-IF-condition-with-the-color-formatting/m-p/4217383#M167132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-04T08:59:14Z</dc:date>
    </item>
  </channel>
</rss>

