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.
Here is a table
Incident_ID | Triggers | Status |
7545714 | 41 | Red |
7545714 | 41 | Green |
7545883 | 16 | Purple |
7549800 | 15 | Red |
7549800 | 15 | Green |
7549800 | 15 | Orange |
Given, there will alway be same number of triggers for a particular ID. But I don't want to count those triggers multiple times.
I tried the following DAX. My expected answer is 72, but I get 143 instead. How to fix?
Distinct_Matches:=CALCULATE(sum(Incidents[Triggers]),DISTINCT(Incidents[Incident_ID]))
Solved! Go to Solution.
If you are sure that Triggers and Incident_ID have a 1:1 relatioship, you could use this:
Distinct_Matches := SUMX ( SUMMARIZE ( Incidents, Incidents[Incident_ID], Incidents[Triggers] ), Incidents[Triggers] )
If you are sure that Triggers and Incident_ID have a 1:1 relatioship, you could use this:
Distinct_Matches := SUMX ( SUMMARIZE ( Incidents, Incidents[Incident_ID], Incidents[Triggers] ), Incidents[Triggers] )
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |