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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.