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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
atowriss74
Regular Visitor

Sum of Distinct Count by Month and CYTD

I have a simple table that looks like below.  I want to get a sum/total of Unique Claim numbers by month (users have a date slicer to choose).  

 

I tried just Distinct Count(# Unique ClaimsProcessed = DISTINCTCOUNT('Claims Pmts Processed Upload'[Claim #]), but it doesn't change when I choose a specific month from the slicer .  I aslo tried this

# Unique ClaimsProcessed = calculate(DISTINCTCOUNT('Claims Pmts Processed Upload'[Claim #]),'Dates_Table Indep'[Date])... and the slicer still doens't impact.  Dates are linked and active with Date Table.
 
What am I missing..this should be simple
 
claimspic.PNG
1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @atowriss74 ,

 

Based on your description, do you create formulas that retain an external filtering context (such as a date field).
Refer to the following formulas (one contains a date filter, one does not)

 

M_ = CALCULATE(DISTINCTCOUNT('Table'[Category]),ALL('Table'))
M_slicerDate =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[Category] ),
    ALLEXCEPT ( 'Table', 'Table'[Date] )
)

vhenrykmstf_0-1666240955157.png

vhenrykmstf_1-1666240969891.png

 

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

 

 

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @atowriss74 ,

 

Based on your description, do you create formulas that retain an external filtering context (such as a date field).
Refer to the following formulas (one contains a date filter, one does not)

 

M_ = CALCULATE(DISTINCTCOUNT('Table'[Category]),ALL('Table'))
M_slicerDate =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[Category] ),
    ALLEXCEPT ( 'Table', 'Table'[Date] )
)

vhenrykmstf_0-1666240955157.png

vhenrykmstf_1-1666240969891.png

 

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


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

 

 

mangaus1111
Solution Sage
Solution Sage

Hi @atowriss74 ,

in the link below you find the pbi file. In my file the slicer works good.

 

https://1drv.ms/u/s!Aj45jbu0mDVJiG2gubFw9YrtOIpP?e=oxApUl 

 

Please hit the thumb and accept my answer as solution!!!

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.