The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |