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
Anonymous
Not applicable

Calculate the cumulative turnover

Hello,
I tried these two formulas to calculate the cumulative turnover but it did not work. Can you calculate the cumulated?
Here is a screenshot:

Capture1.PNGCapture2.PNG

Thank you a lot

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

To make a measure sum up, we can use SUMX such as.

 

 = SUMX(your table, [measure])

So in your scenario, we can update the formula like this to have a try,

 

Cumuletest =
CALCULATE (
    SUMX ( VN, [Livaision] ),
    FILTER ( ALL ( VN ), [DateDeFacture] <= MAX ( [DateDeFacture] ) )
)
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try to use this one.

 

Cumuletest = Calculate(SUM(VN[Livaision]),FILTER(ALL(VN),[DateDeFacture]<=MAX([DateDeFacture])))

1.jpg

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hello @v-frfei-msft 
In my case delivery is already a measure, we can not put SUM before measure, ie we can not do the sum of a measure! ??


Thank you.888.PNG
Cordially.

Hi @Anonymous ,

 

To make a measure sum up, we can use SUMX such as.

 

 = SUMX(your table, [measure])

So in your scenario, we can update the formula like this to have a try,

 

Cumuletest =
CALCULATE (
    SUMX ( VN, [Livaision] ),
    FILTER ( ALL ( VN ), [DateDeFacture] <= MAX ( [DateDeFacture] ) )
)
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

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.