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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.