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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
rziya
Frequent Visitor

Can list but can't count?

Hello, 

 

I am trying to count unique customers based on recorded workhours.. Apparently I can list them but not count...

 

In the left table I have month, customer Number and sum of workhours listed correctly. However when I change the CustomerNumber to show the Count or Count Distinct, Power BI seems to lose the count...

 

What could be causing that? If the relationships were a problem i would expect the list to be broken as well... I will try to replicate this in a simpler model as my current model is more complex than two tables. But the visuals below make me think there is something wrong that is beyond my reach...

 

 

rziya_0-1667902644243.png

 

1 ACCEPTED SOLUTION
rziya
Frequent Visitor

Thank you everyone who replied, read and tought about it. It turned out to be a simple case of the relationship filter direction marked as single instead of both...  

 

View solution in original post

5 REPLIES 5
v-yanjiang-msft
Community Support
Community Support

Hi @rziya ,

Do you need further help? If not, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

Best Regards,
Community Support Team _ kalyj

rziya
Frequent Visitor

Thank you everyone who replied, read and tought about it. It turned out to be a simple case of the relationship filter direction marked as single instead of both...  

 

v-yanjiang-msft
Community Support
Community Support

Hi @rziya ,

Because for the same Year Month, only unsummarized data can be listed, if you select count/sum, it turns to a summarized data and will sum up automatically. 

If you want to count the number of each customer in each YearMonth, you should put CustomerNumber in the visual twice, and only select Count in one of it. Like below:

vkalyjmsft_0-1667986713325.png

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the reply.

 

I am not sure I understand. I am trying to count the number of distinct customers in a month. Below is the table if I add both the customer and count/count(distinct).  I would expect the 142 to be 20 in both tables...

 

rziya_0-1667989211366.png

 

Anonymous
Not applicable

Did you used only visual filtering? What about use dax count?

 

Share the sample of file

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors