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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Mark_C_B
New Member

Dynamic Format for a Measure that contains both numbers and strings

I have a calculated table that is used in a matrix visualization to display various KPI results.  This table contains a "Value" field that can contain a number, a percentage, or a string.  The dynamic format option seems to be great to help format the matrix columns.  I defined the Value measure and everything works great except for not formating the string portion.

 

Here is the format section of my Dynamic measure.

 

Mark_C_B_0-1708117118242.png

 

 

 

SWITCH (
    SELECTEDVALUE ( 'RTGSummary_CM-0'[MetricTrendLabel] ),
    "Corrected Reports", "0",
    "Critical Call Success", IF (SELECTEDVALUE('RTGSummary_CM-0'[Metric Value Decimal])=1.0, "0%", "0.0%" ),
    "Proficiency Testing", "0",
    "Tests Not Performed", "0",
    "Transfusion KPI", IF (SELECTEDVALUE('RTGSummary_CM-0'[Metric Value Decimal])=1.0, "0%", "0.0%" ),
    "TAT KPI Metrics","",
    BLANK()
)

 

 

 

Is this possible to even use a dynamic format measure in this visualization if one of the possible formats is not a number or number variant (%,currency,etc)?

 

I've searched for this and find lots of help with numeric formats but not string / decimal options, which leads me to believe I can't use this solution in this scenario.

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@Mark_C_B 

im not sure what you mean . 

 

check example below : 

Daniel29195_1-1708123288496.png

 

 

is this what you want ? 

 

 

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

View solution in original post

1 REPLY 1
Daniel29195
Super User
Super User

@Mark_C_B 

im not sure what you mean . 

 

check example below : 

Daniel29195_1-1708123288496.png

 

 

is this what you want ? 

 

 

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.