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

Running Total...should be so simple??

I am trying to simply sum up the cumulutive (month to month to month...) totals of outstanding inventory demand.  

 

I am using the standard cumulative total pattern...but clearly it is not the right formula to be using.     You can see that this formula is aggregating the total demand (outstanding requirment).   What I need is for each successive month, to add the total of the previous month.   So, for example, the February cumulative demand should be 16,662.    March cumulative demand would be 16,662 + 10,914 (27,576) and so on.   

 

Cumul Demand = CALCULATE(SUM(Flu_PlanPegging[Outstanding Requirement]),
FILTER(ALL('Date Table'[Date]),'Date Table'[Date] <= MAX('Date Table'[Date])))

 

 

cumul demand.png

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please kindly make sure you have managed the relationship betweeb Flu_PlanPegging table and date table, then add the measure below:

Measure = CALCULATE(SUM('Table'[Volume]),FILTER(ALL(Datetable),[Date]<=MAX(Datetable[Date])))

1.png

 

Pbix attached for your reference. If the problem still exists, please share your dummy pbix here that we can check it further. Thanks!

 

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  -  I do not see how to upload any file?    I see lots of other options....but no option to upload a file attachment.

 

 

 

Hi @Anonymous ,

 

Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

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

hi @Anonymous 

are you sure your Flu_PlanPegging table has relationships with Date Table?

even if so, why dont you use date field from Flu_PlanPegging in FILTER() statement?

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Yes, I do have a date table, and those relationships exist.   Changing it to the "due date" (which is where the relationship is) has no affect.  

 

data model.png

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.