<?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 I want units to be displayed properly in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007326#M157050</link>
    <description>&lt;P&gt;Case in point -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The values above have not reached millions yet and I want powerBI to stop representing it in decimal digit millions and show it as thousands instead. However when the values do reach millions, I want powerbi to switch from using thousands to millions. Currently it's in auto. But if I was to set it myself, it could only be one of thousands or millions or billions. I'm not sure how the custom option will work here.&amp;nbsp;&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;</description>
    <pubDate>Mon, 24 Jun 2024 16:14:49 GMT</pubDate>
    <dc:creator>pborah</dc:creator>
    <dc:date>2024-06-24T16:14:49Z</dc:date>
    <item>
      <title>I want units to be displayed properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007326#M157050</link>
      <description>&lt;P&gt;Case in point -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The values above have not reached millions yet and I want powerBI to stop representing it in decimal digit millions and show it as thousands instead. However when the values do reach millions, I want powerbi to switch from using thousands to millions. Currently it's in auto. But if I was to set it myself, it could only be one of thousands or millions or billions. I'm not sure how the custom option will work here.&amp;nbsp;&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;</description>
      <pubDate>Mon, 24 Jun 2024 16:14:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007326#M157050</guid>
      <dc:creator>pborah</dc:creator>
      <dc:date>2024-06-24T16:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: I want units to be displayed properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007346#M157051</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240749" data-lia-user-login="pborah" class="lia-mention lia-mention-user"&gt;pborah&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your best bet is to write a measure that handles the formatting exactly the way you want, something like this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Paid Amount Label =
VAR _PaidAmount = [Paid Amount]
RETURN
SWITCH (
    TRUE(),
    _PaidAmount &amp;gt; 1000000, FORMAT ( _PaidAmount, "#,#,,.0 M"),
    _PaidAmount &amp;gt; 1000, FORMAT ( _PaidAmount, "#,#,.0 K"),
    FORMAT ( _PaidAmount, "#,#.00")
)&lt;/LI-CODE&gt;
&lt;P&gt;Then use that measure as your data label for the chart.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:22:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007346#M157051</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2024-06-24T16:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: I want units to be displayed properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007395#M157052</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106637" data-lia-user-login="jdbuchanan71" class="lia-mention lia-mention-user"&gt;jdbuchanan71&lt;/a&gt;&amp;nbsp;. Will this work for a calculated column? the dataset has over a few million rows and if I can get away with just modifying the dax code for the calculated column that gives me these numbers, i'd rather not create a separate measure so I can keep the overhead to a minimum.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 16:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007395#M157052</guid>
      <dc:creator>pborah</dc:creator>
      <dc:date>2024-06-24T16:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: I want units to be displayed properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007725#M157053</link>
      <description>&lt;P&gt;No because the amounts are dynamic based on filtering and calculated columns are are only refreshed when the model is refreshed.&amp;nbsp; I have this measure running in a model that has 60 million rows in the main table and it runs fine.&amp;nbsp; The number it is formatting is just a SUM measure and that should run very quickly even over millions of rows.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 20:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4007725#M157053</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2024-06-24T20:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: I want units to be displayed properly</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4008163#M157253</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240749" data-lia-user-login="pborah" class="lia-mention lia-mention-user"&gt;pborah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table and a Stacked bar chart.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then you can click on this button below.&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;img /&gt;&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 style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 04:02:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-want-units-to-be-displayed-properly/m-p/4008163#M157253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T04:02:17Z</dc:date>
    </item>
  </channel>
</rss>

