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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dkdirenzo
Helper I
Helper I

Change Value Format by Row-Level in Same Matrix

Hi, is it possible to change the format of Values in one column in a Matrix? For example, I need to show Rates as a % and Indices as a whole number:

dkdirenzo_0-1713282825267.png

 

1 ACCEPTED SOLUTION
samratpbi
Super User
Super User

Hi, you can create a dynamic formatting on the column.
For example, keep the value column format as General and create a simple measure on that value column.

sum val =
SUM(Dyn_Formatting[Value])
Then once you bring that measure in the visual, change the Format to Dynamic. then in the dynamic Formatting, you can use the below logic.
samratpbi_1-1713284676170.png

As you can see whole numbers are being displyed as number and percentage fields are in %.

If this resolves your problem, then please accept it as solution, thanks!

View solution in original post

3 REPLIES 3
samratpbi
Super User
Super User

Hi, you can create a dynamic formatting on the column.
For example, keep the value column format as General and create a simple measure on that value column.

sum val =
SUM(Dyn_Formatting[Value])
Then once you bring that measure in the visual, change the Format to Dynamic. then in the dynamic Formatting, you can use the below logic.
samratpbi_1-1713284676170.png

As you can see whole numbers are being displyed as number and percentage fields are in %.

If this resolves your problem, then please accept it as solution, thanks!

This is a great start! I am wondering if I can use Switch/True to add more formats? for example, if I need to show percent, decimal, and whole number - is this possible? I'm not sure how else to identify these types of number formats 

Hi,
yes, you can do. using a condition like [sum_val] = or <> INT ([sum_val) you should be able to identify whether a value is decimal or whole number. I have created the format based on the values in your example.

If this resolves your problem, then please accept it as solution, thanks!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors