Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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 |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |