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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.