cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ryan1982
Helper I
Helper I

Distinct count function problem

Hello everyone

 

While I related three tables and tried to make a chart to count distinct values, but something strange happened.

 

Can someone kindly help here? Thank you!

 

The data sample:

 Capture.JPG

 

 

The result:

 Capture2.JPG

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Seems like you are missing a table relationship or something.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop!
Microsoft Hates Greg's Quick Measures
Check out my latest book!

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

Seems like you are missing a table relationship or something.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop!
Microsoft Hates Greg's Quick Measures
Check out my latest book!

View solution in original post

Thank you for your hint about incorrect relationship.

 

 

I found that I have to adjust the relationship from "Many to One - Single" to "Many to One - Both"

 

 

 

 Many to One SingleMany to One SingleMany to One Single OutputMany to One Single OutputMany to One BothMany to One BothMany to One Both OutputMany to One Both Output

 

 

 

 

 

 

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!