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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Sum of Count

Hi!

 

I am using a Count Measure in my powerBI report and it shows the correct result but whenever i drop the date with the measure it does not aggregate the values and shows count in each date.

e.g. in the below image Date is repeating i want to see the sum in each date.how is it possible?

Measure i am using = 

VAR A = CALCULATE(COUNT('Table'[PersonId]),FILTER('Table','Table'[STATUS]="Completed"))
RETURN
IF(ISBLANK(A),0,A)

Capture.PNG

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous


Try just put date and this measure in the table visual, you have other fields so the count measure are not summarized. You may also add allselected() to the expression and try.

 

Meausre = 

VAR A = CALCULATE(COUNT('Table'[PersonId]),FILTER(Allselected('Table'),'Table'[STATUS]="Completed"))
RETURN
IF(ISBLANK(A),0,A)

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Anonymous


Try just put date and this measure in the table visual, you have other fields so the count measure are not summarized. You may also add allselected() to the expression and try.

 

Meausre = 

VAR A = CALCULATE(COUNT('Table'[PersonId]),FILTER(Allselected('Table'),'Table'[STATUS]="Completed"))
RETURN
IF(ISBLANK(A),0,A)

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

This is what your measure should look like:

daxer_0-1620304113019.png

Secondly, I can't tell you why you get what you get since I can't see the model.

 

By the way, having a model with one table only where you store all your data is a very bad idea. Please get familiar with the principles of data modeling for Power BI: Understand star schema and the importance for Power BI - Power BI | Microsoft Docs

themistoklis
Community Champion
Community Champion

@Anonymous 

 

There can be various reasons why this is happening. Best if you could share the file with us.

 

Otherwise you can try the SUMX formula:

 

VAR A = SUMX(ALL(Table), CALCULATE(COUNT('Table'[PersonId]),FILTER('Table','Table'[STATUS]="Completed")))

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors