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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Amani
Frequent Visitor

Cumulative Column

Hello,

 

I want to create a calculated column containing the cumulative premiums order by date. I tried many formula, but the result is not correct.

  1. Cumul 90% = CALCULATE(SUMX('Liste sans prio','Liste sans prio'[Primes]),FILTER('Liste sans prio','Liste sans prio'[Date déport]<=max('Liste sans prio'[Date déport])))
  2. Cumul 90 % = calculate(sum('Liste sans prio'[Primes]),'Liste sans prio'[Date déport]<=MAX('Liste sans prio'[Date déport]))
  3. Cumul 90 % = calculate(
    sum('Liste sans prio'[Primes]),
    DATESBETWEEN('calendar'[Date].[Date],FIRSTDATE('calendar'[Date].[Date]),LASTDATE('calendar'[Date].[Date])))
    Calendar is a table date
    Amani_0-1667290024200.png

     

Result first formula :
Amani_0-1667289570312.png
Result Second and Third Formula :

Amani_1-1667289683216.png

 

Best regards.

 

 

1 ACCEPTED SOLUTION
Amani
Frequent Visitor

I solved the problem by using this formula :

Cumul 90 % = calculate(
sum('Liste sans prio'[Primes]),
filter('Liste sans prio','Liste sans prio'[Date déport]<=EARLIER('Liste sans prio'[Date déport])))
 
Thx

View solution in original post

1 REPLY 1
Amani
Frequent Visitor

I solved the problem by using this formula :

Cumul 90 % = calculate(
sum('Liste sans prio'[Primes]),
filter('Liste sans prio','Liste sans prio'[Date déport]<=EARLIER('Liste sans prio'[Date déport])))
 
Thx

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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