Forum Discussion
Anonymous
6 years agoNot applicable
Changing Format of Measure
Does anyone know what causes the comma button to be greyed out in the formatting options? I have tried to change the format of the following measure but it is stuck at the text format.
- 6 years ago
Hi Anonymous ,
The measures when are created take into account the type of data you have so if you are making a sum it will pick up the number, if it's a max of a date column it will pick up a date format.
When you use several formats in a measure then it automatically assumes the format is text, since you are having several different format.
In your case when you add the last step in your switch measure "Invaluid Selection" you are turning the measure into text so the formatting option is turn off.
Work around can be one of two:
- Use FORMAT on each of the CALCULATE syntax similar to:
- FORMAT(CALCULATE([P&L USD'000'),"###,### $")
- Change the "Invalid Selection" by blank() or 0 and then create a new measure that says invalid selection and place it on a visualization on top of the other so one will be on and the other off depending on the selection.
- Use FORMAT on each of the CALCULATE syntax similar to:
MFelix
2 years agoSuper User
NadeemAhamed
2 years agoHelper V
It is measure