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! Learn more

Reply
snow87
Helper I
Helper I

Creating a slicer that chooses different measures that give percentages

I created some slicers that choose between measures following this guide https://goodly.co.in/change-measures-using-slicer-powerbi/ and it seems to be working. I had to leave the format off to get my line chart to work though. How do I make my line chart display in percentages rather than decimals?

5 REPLIES 5
snow87
Helper I
Helper I

This is the measure I'm using in line chart:

 

Calculation PID To Be = SWITCH( TRUE(), [User Selection PID To Be]="WH Scrap Rate", [WH Scrap Rate], [User Selection PID To Be]="WX Scrap Rate", [WX Scrap Rate], [User Selection PID To Be]="PX Scrap Rate", [PX Scrap Rate], [User Selection PID To Be]="107 Scrap Rate", [107 Scrap Rate], [User Selection PID To Be]="108 Scrap Rate", [108 Scrap Rate], [User Selection PID To Be]="109 Scrap Rate", [109 Scrap Rate], [User Selection PID To Be]="110 Scrap Rate", [110 Scrap Rate], [User Selection PID To Be]="111 Scrap Rate", [111 Scrap Rate], [User Selection PID To Be]="112 Scrap Rate", [112 Scrap Rate], "Select any single PID To Be" )
NickolajJessen
Solution Sage
Solution Sage

Not completely sure what you mean by this?


@snow87 wrote:

I had to leave the format off to get my line chart to work though. 

Is the option to change the format greyed out for you or what is your situation? (When selecting your measure)

NickolajJessen_1-1660047397346.png

 

My individual measures are all set to percentage. But when I use them without formatting through the procedure in the article I linked above they come out as decimal values.

If I try to use FORMAT() the chart is just blank.

Dhacd
Resolver III
Resolver III

Try wrapping the measure in which you want to see as in percentage in the function below.

FORMAT (
        [Your measure],
        "0.0%")

 

If this post helps, then please consider accepting it as the solution to help the other members find it more quickly.
Thanks and regards,

Atma.

So far every time I try to format the output of the measure, it results in the line chart I'm using being blank.

Helpful resources

Announcements
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!

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.

Top Solution Authors