<?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: DAX in SWITCH in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098847#M108835</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here for 2,3 also I need to return the values. But now its coming as empty . This is a TAble visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 20:22:37 GMT</pubDate>
    <dc:creator>LearnPowerBIAS</dc:creator>
    <dc:date>2023-02-24T20:22:37Z</dc:date>
    <item>
      <title>DAX in SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098631#M108826</link>
      <description>&lt;P&gt;Hi Friends,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need urgent help.&lt;/P&gt;&lt;P&gt;I have a column in DB with numbers,&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Names&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in UI those numbers are linked to Names likes&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 -AA&lt;/P&gt;&lt;P&gt;2 - BB&lt;/P&gt;&lt;P&gt;3 - CC&lt;/P&gt;&lt;P&gt;4 - DD&lt;/P&gt;&lt;P&gt;5 - EE&lt;/P&gt;&lt;P&gt;&amp;nbsp;I need to show the names in Table visual not the numbers; So in this&amp;nbsp;case i wrote SWITCH function DAX but the result is&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Names&lt;/TD&gt;&lt;TD&gt;Names&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2,3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;CC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;DD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4,5&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;How to show if they select multipe values in Names coulmns . Please help. TIA&lt;/P&gt;&lt;P&gt;DAX I used:&lt;/P&gt;&lt;P&gt;Names = SWITCH(Names, 1, "AA", 2,"BB", 3, "CC", 4, "DD", 5, "EE")&lt;/P&gt;&lt;P&gt;How to modify this. ?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 17:48:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098631#M108826</guid>
      <dc:creator>LearnPowerBIAS</dc:creator>
      <dc:date>2023-02-24T17:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX in SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098658#M108828</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482677" data-lia-user-login="LearnPowerBIAS" class="lia-mention lia-mention-user"&gt;LearnPowerBIAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you be more specific about the switch statement. Is it applied to a calculated column or measure? Which column/table is involved in this formula? Whi column/table is used in the slicer? How does the report look like?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 18:06:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098658#M108828</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-24T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX in SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098663#M108830</link>
      <description>&lt;P&gt;I created a calculated coulmn using this formula&amp;nbsp;&lt;SPAN&gt;Names = SWITCH(Table[Names], 1, "AA", 2,"BB", 3, "CC", 4, "DD", 5, "EE")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 18:10:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098663#M108830</guid>
      <dc:creator>LearnPowerBIAS</dc:creator>
      <dc:date>2023-02-24T18:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX in SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098694#M108832</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482677" data-lia-user-login="LearnPowerBIAS" class="lia-mention lia-mention-user"&gt;LearnPowerBIAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What about the other questions? How about sharing some screenshots?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 18:42:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098694#M108832</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-24T18:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX in SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098847#M108835</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here for 2,3 also I need to return the values. But now its coming as empty . This is a TAble visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 20:22:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3098847#M108835</guid>
      <dc:creator>LearnPowerBIAS</dc:creator>
      <dc:date>2023-02-24T20:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX in SWITCH</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3099456#M108888</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="482677" data-lia-user-login="LearnPowerBIAS" class="lia-mention lia-mention-user"&gt;LearnPowerBIAS&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the correct version of this SWITCH statement...&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Names = SWITCH(
TRUE(),
Table[Names] = 1, "AA",
Table[Names] = 2, "BB",
Table[Names] = 3, "CC",
Table[Names] = 4, "DD",
Table[Names] = 5, "EE"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am only ammending the DAX I don't know the specifics of your problem, could you give an example table and then the result you'd expect? Or does this solve your problem or give you a better clue on how to solve it? &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 19:23:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-in-SWITCH/m-p/3099456#M108888</guid>
      <dc:creator>TaylorPBI21</dc:creator>
      <dc:date>2023-02-25T19:23:46Z</dc:date>
    </item>
  </channel>
</rss>

