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
rhys1987
Frequent Visitor

Cumulative total by index and product - so close!

Thanks to the help here I am pretty close to what i'm planning to achieve.

 

The following calculated column measure has helped me 

Cumulative Actual Qty =
CALCULATE(
SUMX(Allocation,Allocation[Allocation Qty]),
FILTER(Allocation,Allocation[PDE] = EARLIER(Allocation[PDE]) && Allocation[Index]<= EARLIER(Allocation[Index])))
 
As pictured the total runs up to every PDE and then restarts again but I would like it to start again when the DC changes.
 
So the numbers restarts at the yellow highlight point, not sure if i need to changer 
 
Thanks in advance!

image.jpg
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@rhys1987, try how

Actual cumulative quantity ?
CALCULATE(
SUMX(Assignment,Assignment[Assignment Quantity]),
FILTER(Allocation,Allocation[PDE] a EARLIER(Allocation[PDE]) && Allocation,Allocation[DC] ? EARLIER(Allocation[DC]) && Allocation[Index]<- EARLIER(Allocation[Index])))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@rhys1987, try how

Actual cumulative quantity ?
CALCULATE(
SUMX(Assignment,Assignment[Assignment Quantity]),
FILTER(Allocation,Allocation[PDE] a EARLIER(Allocation[PDE]) && Allocation,Allocation[DC] ? EARLIER(Allocation[DC]) && Allocation[Index]<- EARLIER(Allocation[Index])))

Thanks!
First one works, i was doing something similar but couldn't quite see it.

Hi , @rhys1987 

 

Could you please tell me whether your problem has been solved?
If it is,  please mark the helpful replies or add your reply as Answered to close this thread.
More people will learn new things here. If you haven't, please feel free to ask.

 

Best Regards,
Community Support Team _ Eason

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.