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
RMDNA
Solution Sage
Solution Sage

Changing value type within a measure just for display

Hi all,

 

I'm creating in-table KPIs using a mesaure in order to add a colored box inside the cell (and avoid the full-cell color background).

 

Spoiler
x.PNG

The measure to create this visual is below:

 

Spoiler
New Accounts_WTD % #/KPI =
VAR Indicator =
    IF (
        [New Accounts_PL % WTD] >= 1.1,
        UNICHAR ( 128215 ),
        IF (
            [New Accounts_PL % WTD] < 0.9,
            UNICHAR ( 128213 ),
            IF ( [New Accounts_PL % WTD] >= 0.9UNICHAR ( 128210 )UNICHAR ( 128211 ) )
        )
    )
RETURN
    IF (
        [New Accounts_PL % WTD] <> 0,
        FORMAT ( [New Accounts_PL % WTD] & " " & Indicator0 ),
        0
    )

 

As you can see from the picture, the values are displayed as a number - what I need is to get it to display as a %. The measure is set to display as a %, the field referenced in the calculation is a %, and it's set to % in Field Formatting, but it always stays as a number.

 

Is it possible to set the output format within the measure, or will it always default to a number?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Can you nest formats like such?

 

FORMAT ( FORMAT([New Accounts_PL % WTD],"Percent") & " " & Indicator, 0 )

Hope this helps,

Parker

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Can you nest formats like such?

 

FORMAT ( FORMAT([New Accounts_PL % WTD],"Percent") & " " & Indicator, 0 )

Hope this helps,

Parker

@Anonymous,

 

That seems to work (at least in initial testing); is there a way to specify how many decimals places are used?

Anonymous
Not applicable

I've never done it but apparently it can be done with the FIXED function.

 

FIXED(<number>, <decimals>, <no_commas>)

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.