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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
kasife
Helper V
Helper V

Percent measure in switch function

Hi Guys,

My measure varSelecao = 2, [_EP]*100 is of the percentage type, but in my visual it does not appear as a percentage. Is there any way to adjust this?

 

 

Medida Switch Repasse (qtde) = 
VAR varSelecao = SELECTEDVALUE(Tabela[ID])
RETURN
SWITCH(
    TRUE(),
    varSelecao = 1, [_IPC],
    varSelecao = 2, [_EP]*100,
    varSelecao = 3, [_IPG]
)

 

kasife_1-1678463609005.png

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @kasife ,

 

Here I suggest you to refer to below solved post which has similar issue like your.

For reference:

SWITCH or VAR Function for multi-data types in single table for rows and columns?

 

Best Regards,
Rico Zhou

 

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

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @kasife ,

 

Here I suggest you to refer to below solved post which has similar issue like your.

For reference:

SWITCH or VAR Function for multi-data types in single table for rows and columns?

 

Best Regards,
Rico Zhou

 

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

HassanAshas
Helper V
Helper V

Are you using Medida Switch Repasse (qtde)  in your visual?
If yes, then you need to make this Measure also Percentage type, and that will fix your issue. 

@HassanAshas 

Within the Switch, only this measure is a percentage, the others are not. If I change the type, they will all be as a percentage.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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