Forum Discussion
HxH
Advocate II
7 years agoCumulative backlog calculation
Hi everyone, I'm trying to create a measure that computes the cumulative difference of OPENED PRODUCTS vs CLOSED PRODUCTS and then split it by month to see how the team is doing. I am using the sta...
- 7 years ago
Hi HxH ,
You may add SUMX function in your formula like DAX below.
Backlog = var ClosedContracts = CALCULATE(COUNT('FactTable'[Close Date]),USERELATIONSHIP('Date'[Date],'FactTable'[Close Date])) var ProductsDelivered = CALCULATE(COUNT('FactTable'[Delivery Date]),USERELATIONSHIP('Date'[Date],'Salesforce Data'[Delivery Date])) var Differential = ClosedContracts - ProductsDelivered var Cumulative = FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])) var Backlog = CALCULATE( SUMX('Date', Differential), Cumulative) return BacklogBest Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xicai
Community Support
7 years agoHi HxH ,
You may add SUMX function in your formula like DAX below.
Backlog =
var ClosedContracts = CALCULATE(COUNT('FactTable'[Close Date]),USERELATIONSHIP('Date'[Date],'FactTable'[Close Date]))
var ProductsDelivered = CALCULATE(COUNT('FactTable'[Delivery Date]),USERELATIONSHIP('Date'[Date],'Salesforce Data'[Delivery Date]))
var Differential = ClosedContracts - ProductsDelivered
var Cumulative = FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date]))
var Backlog = CALCULATE(
SUMX('Date', Differential),
Cumulative)
return
Backlog
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.