Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
alexyin1053
Helper I
Helper I

Dynamic Format Strings For Chinese Culture Measure

Dear all,

I'm currently facing an issue of creating dynamic format strings for Chinese audiences. 
We often use a symbol to represent 10K instead of only using thousand and million.

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:


SWITCH(

        TRUE(),
        SELECTEDMEASURE() < 1000000, FORMAT(SELECTEDMEASURE() / 10000, "#,0.0 (10k)",
        "$#,##0,,.0 M"
)

The outcome returns 51 (10k) Instead of 5.1 (10K), which part am I doing wrong?
Any help is appreciated, 

Thanks!

 

 

2 ACCEPTED SOLUTIONS
OwenAuger
Super User
Super User

Hi @alexyin1053 

Since the (10k) format is produced by constructing the formatted value itself, it must be enclosed in double-quotes.

 

Try this:

VAR DoubleQuoteChar = """"
RETURN
    SWITCH (
        TRUE ( ),
        SELECTEDMEASURE ( ) < 1000000,
            DoubleQuoteChar & FORMAT ( SELECTEDMEASURE ( ) / 10000, "#,0.0" ) & " (10k)" & DoubleQuoteChar,
        "$#,##0,,.0 M"
    )

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

Anonymous
Not applicable

Hi, @alexyin1053 

You can try @OwenAuger  method, if it does not work, you can refer to the following way.

vyaningymsft_1-1713496067084.png


 

SWITCH(
    TRUE(),
    SELECTEDMEASURE() < 1000000, FORMAT(ROUND(SELECTEDMEASURE() / 10000, 1), "#,0.0 (10k)"),
    "$#,##0,,.0 M"
)

 

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @alexyin1053 

You can try @OwenAuger  method, if it does not work, you can refer to the following way.

vyaningymsft_1-1713496067084.png


 

SWITCH(
    TRUE(),
    SELECTEDMEASURE() < 1000000, FORMAT(ROUND(SELECTEDMEASURE() / 10000, 1), "#,0.0 (10k)"),
    "$#,##0,,.0 M"
)

 

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

OwenAuger
Super User
Super User

Hi @alexyin1053 

Since the (10k) format is produced by constructing the formatted value itself, it must be enclosed in double-quotes.

 

Try this:

VAR DoubleQuoteChar = """"
RETURN
    SWITCH (
        TRUE ( ),
        SELECTEDMEASURE ( ) < 1000000,
            DoubleQuoteChar & FORMAT ( SELECTEDMEASURE ( ) / 10000, "#,0.0" ) & " (10k)" & DoubleQuoteChar,
        "$#,##0,,.0 M"
    )

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hi @OwenAuger ,

Huge Thanks! This did solved my question! 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.