March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I want to create a measure that counts the number of rows in a table that contains a value from one column, that is filtered by values from another column.
So, I'd like to know How many Event "A" there are that have Criteria of "A" or "C" - so in this example it would = 2.
Thanks!
Soph
Solved! Go to Solution.
Hi @SophRow ,
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
Proud to be a Super User!
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 @SophRow ,
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
Proud to be a Super User!
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
Ignore - it's working now!
Hi @SophRow ,
IF should be lower case. if
Proud to be a Super User!
hi @SophRow ,
You can create a column in Power Query and then sum that column in a measure.
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
Proud to be a Super User!
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |