Forum Discussion
vojtechsima
Super User
3 years agoIF Multiple Columns equal to Value (Power Query M)
Hello, guys, I need to know if there's a formula or function that lets me list columns and if those columns equal to a certain value on each row I want to return some value.
For example:
A...
- 3 years ago
You can use List.MatchesAny but what's the logic of the second line being equal to FALSE? If it follows the logic of the code you provided (each condition with an 'or'), it's TRUE
CNENFRNL
Community Champion
3 years ago
= Table.AddColumn(#"Changed Type", "Result", each not List.Contains(Record.ToList(_),false))
vojtechsima
Super User
3 years agoCNENFRNL
Thank you for the effort, this checks if every column is the TRUE, right?
This doesn'T suit me, very well, in my real scenario but I agree, my example wasn't the best.
So thank you for the effort.