Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello,
I am a recent user of PBI and i am struggling with some data.
I need help to write two measures:
- one measure that group by "bank" and count unique "process" with errors
- one measure that group by "bank" and count total number of unique process received
here is the table and the desired results:
Thank you in advance!
Solved! Go to Solution.
Hi @Anonymous ,
Create 2 measures
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi,
I am also new to DAX. I was just wondering if we could use the following code for your 2nd requirement !
Hi @Anonymous ,
Create 2 measures
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @Anonymous
DAX does a good job of using the context of what's in a table to group things for you. The DAX for what you're looking for is pretty simple, we just need to write a formula that counts the unique processes with errors, and then another similar formula for calculating just the unique processes.
Distinct Processes with Errors =
CALCULATE(
DISTINCTCOUNT(process number),
NOT(ISBLANK(error type))
)
Distinct Processes =
DISTINCTCOUNT(process number)
Hello,
the code bellow didn't work 😞
NOT(ISBLANK(error type))
User | Count |
---|---|
9 | |
8 | |
5 | |
4 | |
3 |