<?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 FORMAT function Alternative - Switch Statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734886#M145562</link>
    <description>&lt;P&gt;Thanks for the response.&amp;nbsp; I though about making duplicate measures, but it would add too many new measure to the report, which is already over 1 GB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 00:02:23 GMT</pubDate>
    <dc:creator>COIL-ibesmond</dc:creator>
    <dc:date>2024-03-01T00:02:23Z</dc:date>
    <item>
      <title>DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731327#M145418</link>
      <description>&lt;P&gt;I'm trying to build a switch statement, but I'm running into a formatting problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using FORMAT(ActualVsBudgetPerc, "Percent" ) but this turns my value into a string which I want to avoid because I can't sort or rank the measure once it is turned into text.&amp;nbsp; Here is my switch statement. I won't define the variables in the statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Result = SWITCH(
    SELECTEDVALUE([id]), 
    1, Sales, 
    8, ActualVsBudget, 
    5, FORMAT(ActualVsBudgetPerc, "Percent"),
    4, SalesLY, 
    9, SalesLYVar,
    6, FORMAT(SalesLYPerc, "Percent"),
    Sales
)

RETURN
Result&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an alternative to FORMAT to get the percentage value to appear without turning it into a text string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COIL-ibesmond&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 18:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731327#M145418</guid>
      <dc:creator>COIL-ibesmond</dc:creator>
      <dc:date>2024-02-28T18:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731931#M145440</link>
      <description>&lt;P&gt;have you considered using the built-in implicit formatting in Power BI?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 01:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731931#M145440</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-29T01:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731963#M145444</link>
      <description>&lt;P&gt;Yes, I cannot format the entire measure because some values are dollar amounts and some are percentages.&amp;nbsp; The measure calculates a row using the switch statement above.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 01:34:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731963#M145444</guid>
      <dc:creator>COIL-ibesmond</dc:creator>
      <dc:date>2024-02-29T01:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731994#M145448</link>
      <description>&lt;P&gt;ah, that's an important piece of information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Enably Dynamic Measure Formatting and learn how to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings" target="_blank"&gt;Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 01:54:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3731994#M145448</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-29T01:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3732755#M145471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678526" data-lia-user-login="COIL-ibesmond" class="lia-mention lia-mention-user"&gt;COIL-ibesmond&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under such scenario, I usually create two measures, one that only returns numeric data types and other one with format applied for display purpose just like an Elephant, one set for display teeth and another real set for chewing. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:38:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3732755#M145471</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-29T07:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734886#M145562</link>
      <description>&lt;P&gt;Thanks for the response.&amp;nbsp; I though about making duplicate measures, but it would add too many new measure to the report, which is already over 1 GB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734886#M145562</guid>
      <dc:creator>COIL-ibesmond</dc:creator>
      <dc:date>2024-03-01T00:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734888#M145563</link>
      <description>&lt;P&gt;Tried this, but wouldn't work.&amp;nbsp; Appreciate the response.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:01:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734888#M145563</guid>
      <dc:creator>COIL-ibesmond</dc:creator>
      <dc:date>2024-03-01T00:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734889#M145564</link>
      <description>&lt;P&gt;Decided to go old-school and dropped the % from the value and multiplied it by 100.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:05:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3734889#M145564</guid>
      <dc:creator>COIL-ibesmond</dc:creator>
      <dc:date>2024-03-01T00:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX FORMAT function Alternative - Switch Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3735326#M145591</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="678526" data-lia-user-login="COIL-ibesmond" class="lia-mention lia-mention-user"&gt;COIL-ibesmond&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're welcome. Duplicate measure are a clutter but measures do not add to size of report.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 03:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-FORMAT-function-Alternative-Switch-Statement/m-p/3735326#M145591</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-03-01T03:59:38Z</dc:date>
    </item>
  </channel>
</rss>

