Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have 13 columns that i need to check to see if there is a "yes" in any of those columns, what is the quickest to do this.
I know I can use a switch / if statement in DAX and in M but just putting it out there if anyone has any quicker way to do it?
Proud to be a Super User!
Solved! Go to Solution.
If the 13 columns are the only columns, you can add a column in M with formula:
= List.Contains(Record.FieldValues(_), "yes")
If, for instance, the 13 columns are the last 13 columns in your table, the formula would look like:
= List.Contains(List.LastN(Record.FieldValues(_),13), "yes")
If the 13 columns are the only columns, you can add a column in M with formula:
= List.Contains(Record.FieldValues(_), "yes")
If, for instance, the 13 columns are the last 13 columns in your table, the formula would look like:
= List.Contains(List.LastN(Record.FieldValues(_),13), "yes")
ha! thats perfect thank you
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |