Forum Discussion
Create measure to count rows based on value in one column that is filtered by another column
- 3 years ago
Hi Anonymous ,
if [#"Criteria "] = "A" and [#"Type of Event"] = "A" or [#"Criteria "] = "C" and [#"Type of Event"] = "A" then 1 else 0
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel - Anonymous3 years ago
Thanks Nathaniel!
It's almost working - just this weird error with then and else:
Any ideas? I added "#" before "Seriousness Criteria" but that throws up an "invalid identifier" error
Hi Anonymous ,
if [#"Criteria "] = "A" and [#"Type of Event"] = "A" or [#"Criteria "] = "C" and [#"Type of Event"] = "A" then 1 else 0
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel
Thanks Nathaniel!
It's almost working - just this weird error with then and else:
Any ideas? I added "#" before "Seriousness Criteria" but that throws up an "invalid identifier" error
- Anonymous3 years agoNot applicable
Ignore - it's working now!
- Nathaniel_C3 years ago
Community Champion
Hi Anonymous ,
IF should be lower case. if