Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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
Solved! Go to Solution.
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
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.
Sorry it should have been MeasureName = If(Table(ColumnA)= "ABCD", "LARGE", "SMALL")
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
Thanks for the reply.. I was able to create the measure with the "min" function on Friday, Appreciate your response.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |