Forum Discussion
Anonymous
7 years agoNot applicable
Create Non Numeric (String) measure using IF and ELSE condition
Something like DATA = If(TableA= "ABCD", "LARGE", "SMALL") I need to create this as a measure because i need to use it in another measure which where i will be using this XYZ and another number cond...
Anonymous
7 years agoNot applicable
Sorry it should have been MeasureName = If(Table(ColumnA)= "ABCD", "LARGE", "SMALL")
v-jiascu-msft
7 years agoMicrosoft Employee
Hi Anonymous,
You can simply add "min" or "max" to the column. Please refer to the snapshot below. BTW, a measure needs the context in the visual.
MeasureName = IF ( MIN ( Table1[ColumnA] ) = "ABCD", "LARGE", "SMALL" )
Best Regards,
Dale
- Anonymous7 years agoNot applicable
Thanks for the reply.. I was able to create the measure with the "min" function on Friday, Appreciate your response.