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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Notbad
Regular Visitor

Custom formatting for table fields added by dynamic measure

Hi! 

I have a matrix which could display different number of fields depending on checkbox filter (I made it via dynamic measure using SWITCH() function). Is it possible to add a custom formatting to every measure separately? For examlpe I want to add a pink background to «clicks» field.

Moreover (and it is even worse), all measures in table aslo have the same format (measure «Costs» on screenshot has decimal format in table, but it suppose to have a currency format in data model). Does anyone know how to fix it? Didn`t find any solution yet, probably, anyone in community knows the answer. 

Thanks for help! 2022-10-25_15-56-53.png

1 ACCEPTED SOLUTION
JorgePinho
Solution Sage
Solution Sage

Regarding the background color I don't think it is possible.

 

In terms of keeping the format of data from the model I would recomend you to do this solution using the new feature Fields Parameter instead of a dynamic measure.

 

Find more regarding this feature here: https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

View solution in original post

1 REPLY 1
JorgePinho
Solution Sage
Solution Sage

Regarding the background color I don't think it is possible.

 

In terms of keeping the format of data from the model I would recomend you to do this solution using the new feature Fields Parameter instead of a dynamic measure.

 

Find more regarding this feature here: https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors