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 condition
4 Replies
- reza_radAdvocate IV
A table cannot be equal to a text value. In DAX, you cannot say TableA="ABCD". If you want a cell value to be equal to that, you have to mention the column name, and also filter the rows to get to the row that you want. Or alternatively, you have to use functions that search the entire column, such as Contains.
- AnonymousNot applicable
Sorry it should have been MeasureName = If(Table(ColumnA)= "ABCD", "LARGE", "SMALL")
- v-jiascu-msftMicrosoft Employee