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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
qwertzuiop
Advocate III
Advocate III

Sales cumulated by date (Calculated Column)

Hello dear Power-BI-Community

 

Following Problem to solve:

Let's assume the table below as example with the following attributes (date, product, sales)

Needed is the column "sales cummulated" based on product and date as calculated column in Power BI.

 

DateProductSalesSales (cummulated)
01.01.2021A2020
01.02.2021A1030
01.03.2021A5080
A
01.01.2021B55
01.02.2021B2025
01.03.2021B1540
B 
01.01.2021C6060
01.02.2021C2080
01.03.2021C30110
C

 

Any ideas how to achieve?

 

Thank you very much for your contribution.

 

Cheers

qwertzuiop 😊

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

Hello @qwertzuiop 

 

Try the following formula:

Cumulative_Sales =
CALCULATE (
SUM ( Sheet1[Sales] ),
FILTER( ALLEXCEPT( Sheet1,Sheet1[Product] ),
Sheet1[Date] <= MAX( Sheet1[Date] ))
)
 
File attached:

View solution in original post

1 REPLY 1
themistoklis
Community Champion
Community Champion

Hello @qwertzuiop 

 

Try the following formula:

Cumulative_Sales =
CALCULATE (
SUM ( Sheet1[Sales] ),
FILTER( ALLEXCEPT( Sheet1,Sheet1[Product] ),
Sheet1[Date] <= MAX( Sheet1[Date] ))
)
 
File attached:

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.