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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
meghansh
Frequent Visitor

Calculating Sum by Date

Hi friends,

 

I have this problem:

 

DateCategoryValue
1 Apr 2023Refund10
1 Apr 2023Sales15
2 Apr 2023Requests5
2 Apr 2023Refund22
2 Apr 2023Sales3
3 Apr 2023Requests2
3 Apr 2023Refund1
3 Apr 2023Sales20
   

 

I need an additional column giving sum over the date. Example, column "Sum" should have the value,

DateCategoryValueSum
1 Apr 2023Refund1025
1 Apr 2023Sales1525
2 Apr 2023Requests530
2 Apr 2023Refund2230
2 Apr 2023Sales330
3 Apr 2023Requests223
3 Apr 2023Refund123
3 Apr 2023Sales2023

 

Thanks.

1 ACCEPTED SOLUTION
DOLEARY85
Super User
Super User

Hi,

 

this should work:

 

Measure = CALCULATE(sum('Table'[Value]),ALLEXCEPT('Table','Table'[Date]))
 
DOLEARY85_0-1691055729445.png

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

1 REPLY 1
DOLEARY85
Super User
Super User

Hi,

 

this should work:

 

Measure = CALCULATE(sum('Table'[Value]),ALLEXCEPT('Table','Table'[Date]))
 
DOLEARY85_0-1691055729445.png

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors