Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hii
i am trying to do the hit of sla by considering 3 conditions. the output i need to get after the operation is EXEMPTED but i am not getting it. Previously i did using COUNTIF function in excel.
can someone help me
Solved! Go to Solution.
Hi @Anonymous ,
Try this
HIT =
CALCULATE (
COUNT ( Query1[Priority] ),
FILTER (
Query1,
Query1[SLA Status] = "FULFILLED"
&& Query1[Exempted SLA] = "N"
&& Query1[Priority] = "PLI_NBD"
)
)
or
HIT =
COUNTROWS (
FILTER (
Query1,
Query1[Priority] = "PLI_NBD"
&& Query1[SLA Status] = "FULFILLED"
&& Query1[Exempted SLA] = "N"
)
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Please try this approach
HIT =
CALCULATE (
COUNTROWS ( Query1 ),
Query1[Priority] = "PLI_NBD",
Query1[SLA Status] = "FULFILLED",
Query1[Exempted SLA] = "N"
)
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hii mohit
i tried using the query u have provided its not showing any error its executed successfully but in the output its showing both exempted and unexempted .
can you help me with this
Thank you
Hi @Anonymous ,
Try this
HIT =
CALCULATE (
COUNT ( Query1[Priority] ),
FILTER (
Query1,
Query1[SLA Status] = "FULFILLED"
&& Query1[Exempted SLA] = "N"
&& Query1[Priority] = "PLI_NBD"
)
)
or
HIT =
COUNTROWS (
FILTER (
Query1,
Query1[Priority] = "PLI_NBD"
&& Query1[SLA Status] = "FULFILLED"
&& Query1[Exempted SLA] = "N"
)
)
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@Anonymous - See if this helps: https://community.powerbi.com/t5/Community-Blog/CO-CU-Excel-to-DAX-Translation/ba-p/1080018#M2077
hiii greg
i tried using those operations but i count try to get the output.i am getting an error
The COUNT function only accepts a column reference as an argument.
can you plz me to solve this
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |