Forum Discussion

kasife's avatar
kasife
Helper V
3 years ago
Solved

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]
)

 

 

 

 

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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. 

    • kasife's avatar
      kasife
      Helper V

      Anonymous 

      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.