<?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 Several conditions if with color in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443422#M65493</link>
    <description>&lt;P&gt;Hi, I would like to create a dax measure with multiples conditions with different measures.&lt;/P&gt;&lt;P&gt;My goal is to create an if-else and return the last&amp;nbsp; True condition&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF( [D] &amp;gt;0, then "yellow",else: "red")&lt;/P&gt;&lt;P&gt;IF ([D] &amp;gt;0 and [S] &amp;gt;0 , then "green")&lt;/P&gt;&lt;P&gt;IF(D&amp;gt;0 and [S]&amp;gt;0 and [T] &amp;gt;0, then "Blue")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If only the first condition is respected return "yellow"&lt;/P&gt;&lt;P&gt;If the first and the second conditions are respected so it returns "green"&lt;/P&gt;&lt;P&gt;If the third one is respected return "blue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 12:32:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-07T12:32:50Z</dc:date>
    <item>
      <title>Several conditions if with color</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443422#M65493</link>
      <description>&lt;P&gt;Hi, I would like to create a dax measure with multiples conditions with different measures.&lt;/P&gt;&lt;P&gt;My goal is to create an if-else and return the last&amp;nbsp; True condition&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF( [D] &amp;gt;0, then "yellow",else: "red")&lt;/P&gt;&lt;P&gt;IF ([D] &amp;gt;0 and [S] &amp;gt;0 , then "green")&lt;/P&gt;&lt;P&gt;IF(D&amp;gt;0 and [S]&amp;gt;0 and [T] &amp;gt;0, then "Blue")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If only the first condition is respected return "yellow"&lt;/P&gt;&lt;P&gt;If the first and the second conditions are respected so it returns "green"&lt;/P&gt;&lt;P&gt;If the third one is respected return "blue"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for helping&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 12:32:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443422#M65493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-07T12:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Several conditions if with color</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443564#M65503</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch( True(), &lt;BR /&gt;D&amp;gt;0 and [S]&amp;gt;0 and [T] &amp;gt;0, "Blue" ,&lt;BR /&gt;[D] &amp;gt;0 and [S] &amp;gt;0 , "green",&lt;BR /&gt;[D] &amp;gt;0, "yellow",&lt;BR /&gt;"Red")&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 13:19:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443564#M65503</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-07T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Several conditions if with color</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443659#M65511</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp; it works ! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 13:50:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Several-conditions-if-with-color/m-p/2443659#M65511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-07T13:50:35Z</dc:date>
    </item>
  </channel>
</rss>

