Forum Discussion
jash_makadiya
3 years agoRegular Visitor
Multiple AND and OR combination
Hello Everyone.. Can anyone guide me with this.. the below underlined are column name and i want to frame a power query for the same If "learning centred teaching = completed" AND (course des...
- 3 years ago
Hi jash_makadiya ,
In Power Query if would be something like this. I'm assuming that if a field isn't completed, then it's null:
if [learning centred teaching] = "completed" and ([course design] = "completed" or [course design for constructive] = "completed") and [practicum] = "completed" and List.NonNullCount({[lecturing], [leading effective discussions], [utc_table], [assessment], [scholarship]}) >= 2 then "TRUE" else "FALSE"Pete
- 3 years ago
I think jash_makadiya is looking for "completed" rather than non-null.
Maybe change the last condition to
List.Count( List.Select( {[lecturing], [leading effective discussions], [utc_table], [assessment], [scholarship]}, each _ = "completed" ) ) >= 2
BA_Pete
3 years agoSuper User
Hi jash_makadiya ,
In Power Query if would be something like this. I'm assuming that if a field isn't completed, then it's null:
if [learning centred teaching] = "completed"
and ([course design] = "completed" or [course design for constructive] = "completed")
and [practicum] = "completed"
and List.NonNullCount({[lecturing], [leading effective discussions], [utc_table], [assessment], [scholarship]}) >= 2
then "TRUE"
else "FALSE"
Pete
jash_makadiya
3 years agoRegular Visitor
Thank you for the solution.