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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Crydus
Helper I
Helper I

Display Unit based on filter

Hello all, 

I have a matrix which shows the purchases our company for this year and the last year and the difference between both per customer. 
As we both need the USD amount and SQM amount of this data, I have implemented a filter which uses a simple table with one column and the two rows "USD" and "SQM". Depending on the selection of these, my measure either shows the USD values or the SQM values. (I have used the DAX expression 'SELECTEDMEASURE()' for this)

Now I have the problem, that the USD values should be shown in millions (00.00 M USD) while the SQM values should be depicted as thousands (00.0 K SQM) but inside of the field formatting I can only use one display unit or none at all, but not the "auto" unit function. Currently it is set to millions, which means that the SQM values are somewhere around 0.0x M SQM. 

Is there any way to display the values in the correct format. I have tried the 'FORMAT()' expression, but this only resulted in an error.. 

Thanks in advance for any help.

Best regards, 

Tobias

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Crydus , Power bi does not support dynamic formatting.

refer if this can help

https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Crydus , Power bi does not support dynamic formatting.

refer if this can help

https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Okay, thats is disappointing to hear.. 

I had a look into the document, but from what I can see, this wont help either.. 

But, thank you. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.