Forum Discussion
Calculate Cumulative value based on two variables
- Anonymous6 years ago
hi team microsoft
you formula is fine see my problem the graph to the left is correct the graph to the right is cumulative an is wrong.
- 6 years ago
Hi Anonymous ,
When we calculate the culmulative sales, we can use the following measure, add the filter in Dim_Sales_Volume Table instead of PMS_FINANCIAL_PDS
Cumulative Sales = CALCULATE([TotalSalesTrend], FILTER( ALLSELECTED(Dim_Sales_Volume), [Month Start] <= MAX(PMS_FINANCIAL_PDS[Month Start]) )
)Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
When we calculate the culmulative sales, we can use the following measure, add the filter in Dim_Sales_Volume Table instead of PMS_FINANCIAL_PDS
Cumulative Sales = CALCULATE([TotalSalesTrend],
FILTER(
ALLSELECTED(Dim_Sales_Volume),
[Month Start] <= MAX(PMS_FINANCIAL_PDS[Month Start])
)
)
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-lid-msft6 years agoCommunity Support
Hi Anonymous ,
We have deleted the sample file and result picture from origin reply, OneDrive for business and local drive.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- Anonymous6 years agoNot applicable
HI Team Microsoft
did you change the regional date setting to make this work as i am getting a different answer and how did you do this?
- v-lid-msft6 years agoCommunity Support
Hi Anonymous ,
We remember just change the measure formula without any filter applied or date field changed.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.