Forum Discussion

TaroGulati's avatar
TaroGulati
Helper III
4 years ago
Solved

FORMAT Function error

Hi guys,

 

I am having difficulty in using the format function.

 

I have this simple table:

 

I am using the simple column chart to represent value based on the slicer selection. 

 

This is the measure that i am using:

 

Value = SWITCH(SELECTEDVALUE('Table'[DIM]),
"A",30,
"B",40,
"C",50,
"D",60)
 
my expected result is this, once i select A or B in the slicer it should show value as a whole number but once i select C or D i want it to show as percentage. i tried using Format but it is converting in text & visual is breaking.
 

 

 

any suggestion would be really helpful. 

 

Thanks

 

 

  • mwegener's avatar
    mwegener
    4 years ago

    TaroGulati 

    Please mark my post as solution, this will also help others.
    Please give Kudos for support.

9 Replies