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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.