<?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: Dynamic Format Strings For Chinese Culture Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3852344#M150507</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Huge Thanks! This did solved my question!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 06:05:21 GMT</pubDate>
    <dc:creator>alexyin1053</dc:creator>
    <dc:date>2024-04-19T06:05:21Z</dc:date>
    <item>
      <title>Dynamic Format Strings For Chinese Culture Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3849456#M150416</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm currently facing an issue of creating dynamic format strings for Chinese audiences.&amp;nbsp;&lt;BR /&gt;We often use a symbol to represent 10K instead of only using thousand and million.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Currently I'm trying to use the dynamic format to fufill my requirement, if the number is lower than 1 million(let's say 51,000), I would prefer the number to show 5.1 (10K)，The following code is what I've tried in FORMAT:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SWITCH(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECTEDMEASURE() &amp;lt; 1000000, FORMAT(SELECTEDMEASURE() / 10000, "#,0.0 (10k)",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"$#,##0,,.0 M"&lt;/SPAN&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;The outcome returns 51 (10k) Instead of 5.1 (10K), which part am I doing wrong?&lt;BR /&gt;Any help is appreciated,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 11:08:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3849456#M150416</guid>
      <dc:creator>alexyin1053</dc:creator>
      <dc:date>2024-04-18T11:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format Strings For Chinese Culture Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3851226#M150492</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="727376" data-lia-user-login="alexyin1053" class="lia-mention lia-mention-user"&gt;alexyin1053&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the (10k) format is produced by constructing the formatted value itself, it must be enclosed in double-quotes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR DoubleQuoteChar = """"
RETURN
    SWITCH (
        TRUE ( ),
        SELECTEDMEASURE ( ) &amp;lt; 1000000,
            DoubleQuoteChar &amp;amp; FORMAT ( SELECTEDMEASURE ( ) / 10000, "#,0.0" ) &amp;amp; " (10k)" &amp;amp; DoubleQuoteChar,
        "$#,##0,,.0 M"
    )&lt;/LI-CODE&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 00:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3851226#M150492</guid>
      <dc:creator>OwenAuger</dc:creator>
      <dc:date>2024-04-19T00:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format Strings For Chinese Culture Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3851538#M150500</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="727376" data-lia-user-login="alexyin1053" class="lia-mention lia-mention-user"&gt;alexyin1053&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You can try&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp; method, if it does not work, you can refer to the following way.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH(
    TRUE(),
    SELECTEDMEASURE() &amp;lt; 1000000, FORMAT(ROUND(SELECTEDMEASURE() / 10000, 1), "#,0.0 (10k)"),
    "$#,##0,,.0 M"
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365912356%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=7IzyI2%2FMOAR%2FYCjWYSKCZL2VPmT4PsxuWBjdUdMWKzo%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-yaningyang%40microsoft.com%7C326a6d727194478c197008dbefc04904%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638367381365919045%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=VeafzdwAsrpisD8s261%2FdyOwJ1aCtBXS3bPA6NODOHY%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Apr 2024 03:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3851538#M150500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-19T03:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Format Strings For Chinese Culture Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3852344#M150507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="6799" data-lia-user-login="OwenAuger" class="lia-mention lia-mention-user"&gt;OwenAuger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Huge Thanks! This did solved my question!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 06:05:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-Format-Strings-For-Chinese-Culture-Measure/m-p/3852344#M150507</guid>
      <dc:creator>alexyin1053</dc:creator>
      <dc:date>2024-04-19T06:05:21Z</dc:date>
    </item>
  </channel>
</rss>

