Forum Discussion
Puja
3 years agoHelper III
Previous month with TREATAS function
Hello Experts,
I need some help with this measure.
I need to get the previous month's sales using this function.
Actual = CALCULATE([Sales], TREATAS(SUMMARIZE(FactSalesForecast,FactSalesForecast[Year SF],FactSalesForecast[Month SF]),
DimDate[Year],DimDate[Month]))
Please help...
Thanks,
P
3 Replies
- Mahesh0016Super User
Puja please try this
Actual =CALCULATE ([Sales],TREATAS (// SUMMARIZE (// FactSalesForecast,// FactSalesForecast[Year SF],// FactSalesForecast[Month SF]// ),VALUES(FactSalesForecast[Month SF]),DimDate[Month]))- PujaHelper III
- Mahesh0016Super User
Puja please Can you first tell me code working or not.Thank you.