Forum Discussion
Create a cumulative projected line for the month using average of previous days in the same month.
Hi guys,
I have been struggling to solve a simple problem for a few days now. I want a projected line based on the average of previous days sales. (As shown in the picture)
I really appreciate any help you can provide.
Hi Devesh ,
Try the following formula:
Measure = IF( MAX(Datemaster[Date]) > LASTNONBLANK( Datemaster[Date], [SumSales] ), AVERAGEX( ALLSELECTED(Datemaster[Date]), [SumSales] ) * DAY( MAX(Datemaster[Date]) ), [Cumulative Actual] )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- v-kkf-msft
Community Support
Hi Devesh ,
Try the following formula:
Measure = IF( MAX(Datemaster[Date]) > LASTNONBLANK( Datemaster[Date], [SumSales] ), AVERAGEX( ALLSELECTED(Datemaster[Date]), [SumSales] ) * DAY( MAX(Datemaster[Date]) ), [Cumulative Actual] )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-kkf-msft
Community Support
Hi Devesh ,
Has your problem been solved? If it is solved, please mark a reply which is helpful to you.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz