<?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: Apply the specific format by measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3391239#M127841</link>
    <description>&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;It works very well&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2023 23:57:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-21T23:57:25Z</dc:date>
    <item>
      <title>Apply the specific format by measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3381447#M127389</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a problem with some visualizations, how can I make that when I select "sales" or "quantity" the format of the measurements is displayed correctly?&lt;/P&gt;&lt;P&gt;I created some daxes, but if I select "sales" in the slicer, the data figures should be displayed in currency format. And if I select "quantity" the format should be a whole number, but this&amp;nbsp;doesn't work well.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I share with you the .pbix&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/drive/folders/1HeccYaKR3eNvJpec9mEJMENbzVQ6MBPE?usp=sharing" target="_blank" rel="noopener noreferrer"&gt;https://drive.google.com/drive/folders/1HeccYaKR3eNvJpec9mEJMENbzVQ6MBPE?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me, please! &lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 23:56:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3381447#M127389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-15T23:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Apply the specific format by measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3381536#M127401</link>
      <description>&lt;P&gt;Hello x-datita! I see that you are having trouble with formatting your measures in Power BI. One way to solve this issue is by using dynamic format strings for measures. This feature allows you to use a DAX expression to determine the format string that a measure will use1. To use this feature, you need to go to File &amp;gt; Options and settings &amp;gt; Options &amp;gt; Preview features and check the box next to Dynamic format strings for measures1. Once you have enabled this feature, you can add a dynamic format string to a measure by clicking on the measure in the Data pane, then going to the Measure tools ribbon, expanding the Format list box, and choosing Dynamic2. A new list box should appear to the left of the DAX formula bar with Format selected. This list box is how you can switch between the measure DAX expression and the dynamic format string DAX expression2. You can then overwrite the pre-populated string with whatever DAX expression will output the desired format string for your measure1.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 01:05:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3381536#M127401</guid>
      <dc:creator>Alef_Ricardo_</dc:creator>
      <dc:date>2023-08-16T01:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Apply the specific format by measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3384196#M127503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please use below dax formual for the measure dynamic format(&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings" target="_blank" rel="noopener"&gt;Create dynamic format strings for measures in Power BI Desktop - Power BI | Microsoft Learn)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR tmp =
    SELECTCOLUMNS ( Medida, "Media", [Medida] )
VAR _str =
    CONCATENATEX ( tmp, [Media] )
RETURN
    SWITCH ( _str, "Sales", "$#,0.00", "Quantity", "#,0.00" )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer the attached .pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team_Binbin Yu&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 03:08:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3384196#M127503</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-17T03:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Apply the specific format by measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3391239#M127841</link>
      <description>&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;It works very well&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 23:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Apply-the-specific-format-by-measure/m-p/3391239#M127841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-21T23:57:25Z</dc:date>
    </item>
  </channel>
</rss>

