<?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 DAX Switch &amp;amp; nested IF in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794497#M183492</link>
    <description>&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-challenge-nested-if-or-switch-is-not-working/m-p/4792912#M183444" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-challenge-nested-if-or-switch-is-not-working/m-p/4792912#M183444&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can't belive there is no solution for this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i need a simple dax measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF( ISINSCOPE( HIER[LEVEL_7_DESC] ), 17, IF( ISINSCOPE( HIER[LEVEL_6_DESC] ), 16, IF( ISINSCOPE( HIER[LEVEL_5_DESC] ), 15 ) ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this doesn't work because if i change the order of column in the visual then the higher or the first condtition will always be the only one is true returning this value only?!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2025 12:56:24 GMT</pubDate>
    <dc:creator>Maximous89</dc:creator>
    <dc:date>2025-08-12T12:56:24Z</dc:date>
    <item>
      <title>DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794497#M183492</link>
      <description>&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-challenge-nested-if-or-switch-is-not-working/m-p/4792912#M183444" target="_blank" rel="noopener"&gt;https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-challenge-nested-if-or-switch-is-not-working/m-p/4792912#M183444&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can't belive there is no solution for this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;i need a simple dax measure&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF( ISINSCOPE( HIER[LEVEL_7_DESC] ), 17, IF( ISINSCOPE( HIER[LEVEL_6_DESC] ), 16, IF( ISINSCOPE( HIER[LEVEL_5_DESC] ), 15 ) ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this doesn't work because if i change the order of column in the visual then the higher or the first condtition will always be the only one is true returning this value only?!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 12:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794497#M183492</guid>
      <dc:creator>Maximous89</dc:creator>
      <dc:date>2025-08-12T12:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794519#M183493</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weird when you say '&lt;SPAN&gt;i can't belive there is no support on this&lt;/SPAN&gt;'.. I clicked open your original post and saw Community support followed up twice on your question there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 12:53:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794519#M183493</guid>
      <dc:creator>MasonMA</dc:creator>
      <dc:date>2025-08-12T12:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794525#M183494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use a measure that checks which level has a non-blank value, assuming each level is only populated when it's relevant:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LevelNumber = 
SWITCH(
    TRUE(),
    NOT(ISBLANK(SELECTEDVALUE(HIER[LEVEL_7_DESC]))), 17,
    NOT(ISBLANK(SELECTEDVALUE(HIER[LEVEL_6_DESC]))), 16,
    NOT(ISBLANK(SELECTEDVALUE(HIER[LEVEL_5_DESC]))), 15,
    BLANK()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 12:57:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4794525#M183494</guid>
      <dc:creator>wardy912</dc:creator>
      <dc:date>2025-08-12T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4795297#M183524</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please share some sample data and expected output to understand the ask. sometimes only looking at the DAX doesn't help but the entire scenario does.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 07:06:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4795297#M183524</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2025-08-13T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4799774#M183639</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you haven't shared any data and it is very hard to provide a solution without it, I took some sample data based on your scenario and created a .pbix file with a working solution for you reference. Please check the attached .pbix file and share your thoughts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 11:53:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4799774#M183639</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-08-18T11:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4803034#M183724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Hope you're doing fine. Can you confirm if the problem is solved or still persists? Sharing your details will help others in the community.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 05:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4803034#M183724</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-08-21T05:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4806507#M183843</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 09:10:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4806507#M183843</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-08-25T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4810281#M183961</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1276602" data-lia-user-login="Maximous89" class="lia-mention lia-mention-user"&gt;Maximous89&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 11:34:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4810281#M183961</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2025-08-28T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Switch &amp; nested IF</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4818373#M184214</link>
      <description>&lt;P&gt;I left a comment on your original post, but here it is agian:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Realistically, a field parameter would be a better implementation of this situation than a DAX Switch statement. For the field parameter, you would select/add every measure you would like a user to select from (like what you have in the switch statement) and use this as a slicer on the page. Also with a field parameter, you can select multiple values and each value will appear and not get ignored like a Switch statement would. &lt;/LI-CODE&gt;&lt;P&gt;To add onto this, if you need the ability for end-users to select multiple data elements a field parameter would be a better solution than nested IF's or Switch statements. Here's the documentation for field parameters:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters" target="_blank"&gt;Use report readers to change visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 15:56:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Switch-amp-nested-IF/m-p/4818373#M184214</guid>
      <dc:creator>Alex_Sawdo</dc:creator>
      <dc:date>2025-09-05T15:56:37Z</dc:date>
    </item>
  </channel>
</rss>

