<?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 switch statement using text and a number column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2077757#M47103</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;Trying the below when the kms are 0 it still will return a 0 and not 20. Is there a way i can use the below with some minor changes??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Buffer Kms = SWITCH(TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Air") , 'Co-ordinate'[Kms]/100*22, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Sea") ,'Co-ordinate'[Kms]/100*24, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Roa"), 'Co-ordinate'[Kms]/100*18, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Rai"), 'Co-ordinate'[Kms]/100*9, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Cou"), 'Co-ordinate'[Kms]/100*22, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Kms] = 0), 20, 0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Sep 2021 12:47:08 GMT</pubDate>
    <dc:creator>ruthgammack</dc:creator>
    <dc:date>2021-09-15T12:47:08Z</dc:date>
    <item>
      <title>switch statement using text and a number column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2077757#M47103</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Trying the below when the kms are 0 it still will return a 0 and not 20. Is there a way i can use the below with some minor changes??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Buffer Kms = SWITCH(TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Air") , 'Co-ordinate'[Kms]/100*22, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Sea") ,'Co-ordinate'[Kms]/100*24, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Roa"), 'Co-ordinate'[Kms]/100*18, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Rai"), 'Co-ordinate'[Kms]/100*9, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Mode] = "Cou"), 'Co-ordinate'[Kms]/100*22, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;('Co-ordinate'[Kms] = 0), 20, 0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Sep 2021 12:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2077757#M47103</guid>
      <dc:creator>ruthgammack</dc:creator>
      <dc:date>2021-09-15T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: switch statement using text and a number column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2077999#M47117</link>
      <description>&lt;P&gt;The last condition must be the first. It really does matter what you put where in switch.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 14:38:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2077999#M47117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-15T14:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: switch statement using text and a number column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2080118#M47175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="248960" data-lia-user-login="ruthgammack" class="lia-mention lia-mention-user"&gt;ruthgammack&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Buffer Kms =
IF (
    'Co-ordinate'[Kms] = 0,
    20,
    SWITCH (
        TRUE (),
        ( 'Co-ordinate'[Mode] = "Air" ),
            'Co-ordinate'[Kms] / 100 * 22,
        ( 'Co-ordinate'[Mode] = "Sea" ),
            'Co-ordinate'[Kms] / 100 * 24,
        ( 'Co-ordinate'[Mode] = "Roa" ),
            'Co-ordinate'[Kms] / 100 * 18,
        ( 'Co-ordinate'[Mode] = "Rai" ),
            'Co-ordinate'[Kms] / 100 * 9,
        ( 'Co-ordinate'[Mode] = "Cou" ),
            'Co-ordinate'[Kms] / 100 * 22
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Appreciate your Kudos&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":victory_hand:"&gt;✌️&lt;/span&gt;&lt;STRONG&gt;!!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 11:00:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2080118#M47175</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-09-16T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: switch statement using text and a number column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2088709#M47532</link>
      <description>&lt;P&gt;unfortunately it doesnt work. ill keep trying&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 12:31:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/2088709#M47532</guid>
      <dc:creator>ruthgammack</dc:creator>
      <dc:date>2021-09-21T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: switch statement using text and a number column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/3024871#M103091</link>
      <description>&lt;P&gt;I have refering url column under which urls listed like below&lt;/P&gt;&lt;P&gt;google.com&lt;BR /&gt;facebook.com&lt;/P&gt;&lt;P&gt;instagram.com&lt;BR /&gt;linkedin.com&lt;/P&gt;&lt;P&gt;i want ad need column which lists respective urls&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i do&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 06:38:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/switch-statement-using-text-and-a-number-column/m-p/3024871#M103091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-17T06:38:11Z</dc:date>
    </item>
  </channel>
</rss>

