Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Xilitor01
Helper III
Helper III

Distinct Count calculated wrong

Hi,

I want to make a KPI counting the Participants in a survey. When I have the participants in a table it shows correctly, but once I transform these into a count or distinct count it shows incorrectly.

You can see below what I mean:

Don't summarize:

Xilitor01_1-1636537742601.png

 

 

Distinct Count:

Xilitor01_0-1636537713146.png

 

I want to make a card showing the KPI of 1 instead of 5 - because you can see there's only one participant when I 'Don't Summarize'.

I have tried all three posibilities in terms of joins from the two tables (Both, table1 filters table 2 and table 2 filters table 1).

 

I hope someone can help.

Thank you! 🙂

 

1 ACCEPTED SOLUTION
Xilitor01
Helper III
Helper III

The problem was fixed with creating a measure to filter the data instead of using the filter-panel.
So the measure was:

Filter =
CALCULATE(DISTINCTCOUNT('5GENAVGPARTICIPANTVIEW'[PARTICIPANTID]),FILTER(V_BENCHMARK, [PBISlicer Check] = 1))

View solution in original post

2 REPLIES 2
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

check the raw data itself and do the calculation manually cause that way you did it should wr=ork fine for what you asking 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Xilitor01
Helper III
Helper III

The problem was fixed with creating a measure to filter the data instead of using the filter-panel.
So the measure was:

Filter =
CALCULATE(DISTINCTCOUNT('5GENAVGPARTICIPANTVIEW'[PARTICIPANTID]),FILTER(V_BENCHMARK, [PBISlicer Check] = 1))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.