cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper II

## Ecart cumulative

Hello,

I would like to calculate a cumulative difference between a cumulative actual amount and the cumulative budget amount.
The problem is that we have the actual amount up to September and the budget amount up to the end of the year.
When doing the difference it takes the total sum of the cumulated budget.
I'd like it to be limited to the cumulated actual amount.
Here's an example:

I would like show the value in blue

6 REPLIES 6
Helper II

Hello,

This is my file PBI.

Presently, I have the data realized to january 2023.

I want to calculate the ecart realized cumul and budget cumul.

The problem the realized cumul is limit to january 2023 and the budget to december 2023.

The result of my calculate : the amount realized (january 2023) - amount budget (all cumul to december 2023). This result is not correct.

I want to calculate the ecart in the data realised

Exple : The realised in 2023 is limit january, I want to calculate the ecart realied and budget january 2023.
If i have the new data for realied (exple: fevuary 2023), the ecart is realised (fevuary 2023) and budget fevuary 2023.

Help me

Super User

Hi,

Revise this measure to

``Ecart realized/budget = if([Realized] <> BLANK(),[Realized YTD] - [Budget YTD], BLANK())``

Write this measure

``Measure = SUMX(VALUES('Dim Date'[Mois - Libellé]),[Ecart realized/budget])``

Hope this helps.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Helper II

Hello

thanks you for the solution.

This solution  is not generally when the amount has the data.

Exemple :  When click 2022, I have the data for all month (january and december) but the total is not correct.

2023

2022

Super User

I hope you have tried my formulas and your answer is correct.

Regards,
Ashish Mathur
http://www.ashishmathur.com
Super User

Hi,

Regards,
Ashish Mathur
http://www.ashishmathur.com
Helper II

Hello,

Thanks

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

#### Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors