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
Pucca121
Helper II
Helper II

Cumulative total

Hi everyone!

 

I am new working with Power BI and I have a problem. My cumulative amount dosen't work when I add the date.  Does someone know why?

 

 

My formula of date:  DATE= CALENDARAUTO ()

My cumulative formula: Cumuldonsenjour= CALCULATE([Nombre de dons par jour];FILTER(ALL(DONS[Jcampagne]);DONS[Jcampagne]<=MAX(DONS[Jcampagne])))

 

 

Thank you!!

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

Can you explain what exactly is not working?

 

Is the [Jcampagne] column of Data Type: Date

 

Also try filtering the table without referencing the column like this...

 

Cumuldonsenjour =
CALCULATE (
    [Nombre de dons par jour];
    FILTER ( ALL ( DONS ); DONS[Jcampagne] <= MAX ( DONS[Jcampagne] ) )
)

If DONS[Jcampagne] is a date and you've set a relationship to DATE[Date] then this should work also

 

Cumuldonsenjour =
CALCULATE (
    [Nombre de dons par jour];
    FILTER ( ALL ( DATE ); DATE[Date] <= MAX ( DATE[Date] ) )
)

 

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

Can you explain what exactly is not working?

 

Is the [Jcampagne] column of Data Type: Date

 

Also try filtering the table without referencing the column like this...

 

Cumuldonsenjour =
CALCULATE (
    [Nombre de dons par jour];
    FILTER ( ALL ( DONS ); DONS[Jcampagne] <= MAX ( DONS[Jcampagne] ) )
)

If DONS[Jcampagne] is a date and you've set a relationship to DATE[Date] then this should work also

 

Cumuldonsenjour =
CALCULATE (
    [Nombre de dons par jour];
    FILTER ( ALL ( DATE ); DATE[Date] <= MAX ( DATE[Date] ) )
)

 

Thank you so much, it works 🙂 

 

By the way, do you know how to calculate the cumulative return rate?

I did it like this: 

 

Taux de retour cumulé = DIVIDE([Cumul dons];SUM('Mailing details'[Nombre d'envois]))

 

Thank you again

 

:)))

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.