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
robadob
Frequent Visitor

Dynamic Formatting of Measure

Hi Folks,

 

I have a report containing a table that allows the user to select the metric they are viewing for the report:

robadob_0-1644513460955.png

 

robadob_1-1644513502478.png

robadob_2-1644514036253.png

The idea is to condense report layout and reduce the number of fields on a report page. 

 

It works quite well, but because the selected metric could be  £, %, M^2, etc the measure is set to 'General' format.

 

Is it possible to change the format of the measure based on the selection? Or to somehow append/prepend the appropiate unit symnbol? 

 

I thought of concatentating with a string but that stopped it being treated as number.

 

I might just be onto a loser but any suggestions would be greatly appreciated!

 

Thanks in advance 🙂

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Either use calculation groups with custom formatting, or make that measure a text.

View solution in original post

4 REPLIES 4
Ramgopal_PBI
Frequent Visitor

Caluclated Groups are not working for dual axis,Is there any other solution availble to format a measure dynamically? 

robadob
Frequent Visitor

For anyone else who finds this the following is a starting point for calculation groups: https://www.youtube.com/watch?v=XCugcQ-_Zfk

 

This page was also helpful: https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/

 

And the free version of Tabular editor can be found here: https://github.com/TabularEditor/TabularEditor/releases/tag/2.16.5 

lbendlin
Super User
Super User

Either use calculation groups with custom formatting, or make that measure a text.

Thanks for the tip - I'll do some reading on calculation groups 🙂 

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.