<?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: Nested IF or ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045116#M104640</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried your solution, but it looks like the first condition is met in the first row, so it applies that expression to the whole table. i am trying something like this without any luck:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i want it to change color based on the value in the row level. Here is a picture of the measure for the table Is there any way to color format in here??:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 13:20:06 GMT</pubDate>
    <dc:creator>Robin96</dc:creator>
    <dc:date>2023-01-26T13:20:06Z</dc:date>
    <item>
      <title>Nested IF or ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045074#M104637</link>
      <description>&lt;P&gt;Hey, i am running into a problem when i need to make a conditional formatting setting, but i have 15 measures for each row in a table. I have tried the measure below, but it only works for the measure called "Serviceavtaler", i also want the exact same for Subsription, but it only allows me to do 2 ifs in the return. Anyone have any idea?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:05:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045074#M104637</guid>
      <dc:creator>Robin96</dc:creator>
      <dc:date>2023-01-26T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF or ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045089#M104639</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430785" data-lia-user-login="Robin96" class="lia-mention lia-mention-user"&gt;Robin96&lt;/a&gt;&amp;nbsp;Try using a SWITCH(TRUE(),...) statement instead of nested IF statements.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH(TRUE(),
  serviceavtaler &amp;lt;= 1, "#FF0000",
  servicevtaler &amp;gt; 0, "#008000",
  &amp;lt;next condition&amp;gt;, &amp;lt;next value&amp;gt;,
  ...,
  &amp;lt;default value&amp;gt;
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:11:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045089#M104639</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-26T13:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF or ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045116#M104640</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried your solution, but it looks like the first condition is met in the first row, so it applies that expression to the whole table. i am trying something like this without any luck:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i want it to change color based on the value in the row level. Here is a picture of the measure for the table Is there any way to color format in here??:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 13:20:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045116#M104640</guid>
      <dc:creator>Robin96</dc:creator>
      <dc:date>2023-01-26T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF or ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045589#M104658</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430785" data-lia-user-login="Robin96" class="lia-mention lia-mention-user"&gt;Robin96&lt;/a&gt;&amp;nbsp;Right, the first condition that is met is what is returned. Note, that would be similar to nested IF statemetns. So, you will need additional conditions perhaps using &amp;amp;&amp;amp; or something else to distinguish what things get what colors. Hard to say more as I don't know all the business rules.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 16:04:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Nested-IF-or/m-p/3045589#M104658</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-01-26T16:04:28Z</dc:date>
    </item>
  </channel>
</rss>

