Forum Discussion
xiumi_hou
6 years agoPost Partisan
Quick question for measure format data
Dear all, I have below switch measure: Current Month_Session = SWITCH( MIN('Measure Filter - Session'[Number]) , ----------------------...
parry2k
6 years agoSuper User
xiumi_hou you can use format function to define the format for each measure
- xiumi_hou6 years agoPost Partisan
parry2k Hi Parry,
The red one is a measure, and I put the format as percentage. However, when I put all the calculate measures as a new a measure(Current Month_Session), because the other calculate measures in the switch measure is integar, so I have to put the switch measure format as general, How should I make 10(red) as percentage?
- parry2k6 years agoSuper User
xiumi_hou something like this and this post will help
Current Month_Session = VAR __myValue = SWITCH( MIN('Measure Filter - Session'[Number]) , -------------------------------------- 1,[Count_Sessions_Scheduled], 8,[Scheduled_without_cancelled_24hrs], 2,[Count_Held_Sessions], 3,[Count_A1_Assessment_Held], 6,[Count_Sessions_Cancel/Missing], 9,[Count_Sessions_Cancel_outside 24], 10,[Count_Percentage_Missing/Cancelled] ) RETURN IF ( MIN('Measure Filter - Session'[Number]) = 10, FORMAT( __myValue, "Percent"), FORMAT( __myValue, "General Number") )