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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
abdul_kalam84
Frequent Visitor

Total distinct count not matching with individual status count

I am new to Power BI and DAX. Need help on below scenario

I am loading weekly incident files into PowerBI, which has incident number ,status and weekending date.

However same incident number can repeat with different status in other week file .

when I do distinct incident count form all files, I am  getting 262 count but when displaying status wise count getting more .

Its understandable due to status change, incident number is duplicating but not sure how to match total distinct and category wise count. Please suggest.

 

abdul_kalam84_0-1607196104457.png

 

3 REPLIES 3
AlB
Community Champion
Community Champion

@abdul_kalam84 

If you want the 3 at the total just use:

 
Measure = DISTINCTCOUNT(Table1[IncidentID ])

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

abdul_kalam84
Frequent Visitor

Hi @AlB 

Thank you.

Below is my dataset structure , I am calculating distinct YTD count based on weekenddate.   Here I am getting count is 3 which is correct .

but when display YTD by status, I am getting Open - 2, Closed-2  so total is 4 instead of 3 .How to handle this.

 

IncidentID    Status   WeekendDate

--------         ------     -------------
1234            Open      07-11-2020
5678           Closed     07-11-2020
1234           Closed     14-11-2020
4567           Open       14-11-2020

AlB
Community Champion
Community Champion

Hi @abdul_kalam84 

Measure TOT =
SUMX ( DISTINCT ( Table1[CurrentStatus] ), [YTDSOSub] )

 

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

 

SU18_powerbi_badge

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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