<?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: Convert total revenue into K,M,B,T in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3240588#M119219</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="562027" data-lia-user-login="Johnsmith23" class="lia-mention lia-mention-user"&gt;Johnsmith23&lt;/a&gt; , have you tried the new dynamic format option from April 2023&lt;/P&gt;
&lt;P&gt;Check the below code in link&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH (
    TRUE (),
    SELECTEDMEASURE () &amp;lt; 1000, “$#,##0”,
    SELECTEDMEASURE () &amp;lt; 1000000, “$#,##0,.0K”,
    “$#,##0,,.0M”
)&lt;/LI-CODE&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-new-dynamic-format-strings-for-measures/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-new-dynamic-format-strings-for-measures/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 15:29:52 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-05-17T15:29:52Z</dc:date>
    <item>
      <title>Convert total revenue into K,M,B,T</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3240255#M119196</link>
      <description>&lt;P&gt;I want convert Total revenue to K,M,Bn,T. But could not convert properly. when convert into K its showing me M and vice versa and I want the value in data label to be visible in comma, I have attached the measure I'm using.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 14:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3240255#M119196</guid>
      <dc:creator>Johnsmith23</dc:creator>
      <dc:date>2023-05-17T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert total revenue into K,M,B,T</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3240588#M119219</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="562027" data-lia-user-login="Johnsmith23" class="lia-mention lia-mention-user"&gt;Johnsmith23&lt;/a&gt; , have you tried the new dynamic format option from April 2023&lt;/P&gt;
&lt;P&gt;Check the below code in link&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH (
    TRUE (),
    SELECTEDMEASURE () &amp;lt; 1000, “$#,##0”,
    SELECTEDMEASURE () &amp;lt; 1000000, “$#,##0,.0K”,
    “$#,##0,,.0M”
)&lt;/LI-CODE&gt;
&lt;P&gt;-&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-new-dynamic-format-strings-for-measures/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/deep-dive-into-the-new-dynamic-format-strings-for-measures/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 15:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3240588#M119219</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-05-17T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert total revenue into K,M,B,T</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3241032#M119248</link>
      <description>&lt;P&gt;In Power BI, you can convert values to different units such as K (thousands), M (millions), Bn (billions), and T (trillions) using the "Format" options. Here's how you can do it:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Select the column or measure that you want to format.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the "Modeling" tab, go to the "Formatting" section.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Under the "Format" drop-down menu, choose the desired format for your values. For example, if you want to convert values to millions, select "Millions."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Power BI will automatically format the values in the selected column or measure based on your chosen format. The values will be displayed in a shortened format with a corresponding unit (e.g., 1.5M for 1.5 million).&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Note: If you want to customize the format or use a different unit, you can follow these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Select the column or measure that you want to format.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the "Modeling" tab, go to the "Formatting" section.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Under the "Format" drop-down menu, select "Custom."&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the "Format code" field, enter the desired format code. Here are some examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To display values in thousands (K): "#,##0,K"&lt;/LI&gt;&lt;LI&gt;To display values in millions (M): "#,##0.0,,M"&lt;/LI&gt;&lt;LI&gt;To display values in billions (Bn): "#,##0.0,,,Bn"&lt;/LI&gt;&lt;LI&gt;To display values in trillions (T): "#,##0.0,,,,T"&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Power BI will format the values in the selected column or measure according to your custom format code. The values will be displayed with the specified unit (e.g., 1.5M for 1.5 million).&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;By using these formatting options, you can easily convert values to different units in Power BI.&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 20:13:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3241032#M119248</guid>
      <dc:creator>Ajendra</dc:creator>
      <dc:date>2023-05-17T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert total revenue into K,M,B,T</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3241671#M119291</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;@Im using Slicer to display values&lt;/P&gt;&lt;P&gt;My measure is Total Income = SWITCH(TRUE(), SELECTEDVALUE('Display units'[Amount Units]) = "Millions" ,[Total Revenue]/1000000, SELECTEDVALUE('Display units'[Amount Units]) = "Thousands" , [Total Revenue]/ 1000,&lt;/P&gt;&lt;P&gt;SELECTEDVALUE('Display units'[Amount Units]) = "Billion" ,[Total Revenue], SELECTEDVALUE('Display units'[Amount Units]) = "Trillion" , [Total Revenue]/1000000000000, SELECTEDVALUE('Display units'[Amount Units]) = "Original Value",[Original Revenue], [Total Revenue] )&lt;/P&gt;&lt;P&gt;For the Total Revenue I have measure SUM('Financials Sample Data'[Jan]) + SUM('Financials Sample Data'[Feb]) + SUM('Financials Sample Data'[Mar]) + ..... it goes on till (Dec)&lt;/P&gt;&lt;P&gt;In the total income Measure if I use FORMAT([Total Revenue], "$#,##0,,.0M") instead of[Total Revenue]/1000000&lt;/P&gt;&lt;P&gt;No value is being Displayed.&lt;/P&gt;&lt;P&gt;It's Been few days every since I have Started learning Power Bi. So Please forgive me If I have asked some blunt question&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:08:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Convert-total-revenue-into-K-M-B-T/m-p/3241671#M119291</guid>
      <dc:creator>Johnsmith23</dc:creator>
      <dc:date>2023-05-18T08:08:59Z</dc:date>
    </item>
  </channel>
</rss>

