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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DieDybi
Regular Visitor

Issue with Dynamic format strings for measures

Hi All,

 

this is my first post here and I hope I am doing it correctly. Otherwise please let me know.

My issue/ challenge is as follows:

I would like to display all results/values <1000 as is, but for all values above 1000 I want to assign/use unit Thousands. I know I could use Format(), but I still need to be able to sort columns, therefore Formats() doesn't work for me.


2023-04-20_16h52_42.png2023-04-20_16h54_43.png

I read about the new feature Dynamic format strings for measures (April 2023), but couldn't implement it so far.
Any help is appreaciated.

 

Thank you very much in advance
Sabine

1 REPLY 1
Irwan
Super User
Super User

Hello @DieDybi ,

 

please check if this result accomodate your need.

Irwan_1-1719292544791.png

 

Column Rename =
SUBSTITUTE(
    IF(
        'Table'[Sum of Data]>1000,
        FORMAT('Table'[Sum of Data]/1000,"$#,0.0K"),
        FORMAT('Table'[Sum of Data],"$#")
    ),
    ".",
    "," //substitute . to , as FORMAT use . as separator
)
 
Remove $ symbol it you dont need it (i am only put it as additional information).
Please be aware, this renaming will make those number as TEXT.
 
Hope this will help you.
Thank you.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.