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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Date count and value sum over day, month and year

Hi,

 

This is the formula which I am using to get the values in the first column.

It's counting all the dates but what I want is for the value added to be split over day,month and year in each column.

 

H date (Column) count =
CALCULATE(COUNTA('Lead'[CreatedDate]
))

 

HarryB_0-1671042767215.png

 

Please can you help.

1 ACCEPTED SOLUTION
v-xiaosun-msft
Community Support
Community Support

Hi @Anonymous ,

 

I wonder whether I understand your problem correctly. Do you need to split your date columns to "year", "month","day", and then count them?

vxiaosunmsft_0-1671093360412.pngvxiaosunmsft_1-1671093372774.png

vxiaosunmsft_2-1671093413409.png

Then you can use COUNT function.

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.  

 

Best Regards,
Community Support Team _ xiaosun

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
Anonymous
Not applicable

Hi, 

 

Thank you for your reponse.

 

I just needed the days counted but summed up per day. So if I have an entry of 1 count for july the 5 times would I still use the count method? How would I sum up the each day with different counts.

v-xiaosun-msft
Community Support
Community Support

Hi @Anonymous ,

 

I wonder whether I understand your problem correctly. Do you need to split your date columns to "year", "month","day", and then count them?

vxiaosunmsft_0-1671093360412.pngvxiaosunmsft_1-1671093372774.png

vxiaosunmsft_2-1671093413409.png

Then you can use COUNT function.

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.  

 

Best Regards,
Community Support Team _ xiaosun

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.