<?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: Switch statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522069#M70375</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383381" data-lia-user-login="reendzz98" class="lia-mention lia-mention-user"&gt;reendzz98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I mean the original results before adding SUM. Of course you cannot sum a measure&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 03:37:06 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-05-18T03:37:06Z</dc:date>
    <item>
      <title>Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2521902#M70362</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create another column - Tier in my dashboard and below is the switch statement that I have queried:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tier_testing = SWITCH(
OFFICE[Sales] &amp;gt; 500, "Tier 1", 
OFFICE[Sales] &amp;gt;= 300 &amp;amp;&amp;amp; SMS_TBL_MeSSP_AQIR_Fact_Infotech_Financials[Total Sales Measure] &amp;lt; 500, "Tier 2",
OFFICE[Total Sales Measure] &amp;gt;= 200 &amp;amp;&amp;amp; OFFICE[Sales] &amp;lt; 300, "Tier 3",
OFFICE[Total Sales Measure] &amp;gt;=0 &amp;amp;&amp;amp; OFFICE[Sales] &amp;lt; 200, "Tier 4")&lt;/LI-CODE&gt;&lt;P&gt;The problem is that, whan I insert this measure in to the table, it cant read, and I think most probably because I didnt include the currency RM in my DAX. Anyone can help me to resolve this problem? I want to know how to include the currency in my DAX query.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 01:46:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2521902#M70362</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2022-05-18T01:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522047#M70370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383381" data-lia-user-login="reendzz98" class="lia-mention lia-mention-user"&gt;reendzz98&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please change OFFICE[Sales] to SUM(&lt;SPAN&gt;OFFICE[Sales]). The rest I belive are measures so there should be no problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 03:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522047#M70370</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-18T03:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522051#M70371</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your respond. I forgot to mention that [Sales] is actually a measure result from another measure. Does that affect my switch statement?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 03:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522051#M70371</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2022-05-18T03:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522053#M70372</link>
      <description>&lt;P&gt;What results are you getting?can you share a screenshot?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 03:22:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522053#M70372</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-18T03:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522062#M70374</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;this is the name of the table and column that i actually used and as I add SUM, the red line appears&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 03:28:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522062#M70374</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2022-05-18T03:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522069#M70375</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383381" data-lia-user-login="reendzz98" class="lia-mention lia-mention-user"&gt;reendzz98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I mean the original results before adding SUM. Of course you cannot sum a measure&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 03:37:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522069#M70375</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-05-18T03:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522073#M70376</link>
      <description>&lt;P&gt;I couldnt display anything from the first time i did the switch statement. I tried using if statement, it did work but I can only display one of the tiers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tier_testing1 = IF(SMS_TBL_MeSSP_AQIR_Fact_Infotech_Financials[Total Sales Measure] &amp;gt;= 60000000, "Tier 1")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 18 May 2022 03:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522073#M70376</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2022-05-18T03:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522091#M70378</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;Thank you for your respond.&amp;nbsp; I have figured out the way to do it using multiple IF statement&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 04:27:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2522091#M70378</guid>
      <dc:creator>reendzz98</dc:creator>
      <dc:date>2022-05-18T04:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Switch statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2711567#M82399</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="383381" data-lia-user-login="reendzz98" class="lia-mention lia-mention-user"&gt;reendzz98&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try nested if statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashfiya&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 05:42:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-statement/m-p/2711567#M82399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-19T05:42:22Z</dc:date>
    </item>
  </channel>
</rss>

