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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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