Forum Discussion
ZataConsulting
8 years agoRegular Visitor
MdxScript(Model)(187,74).....Calulcation error in measure
I have use the followin formu;ar Total Revenue LY = Calculate([Total Revenue],SAMEPERIODLASTYEAR(DimDate[Date].[Year])) and get the following error message Here is part of the error message...
- 8 years ago
Hi ZataConsulting,
Please try again without the ".[Year]" part.
Total Revenue LY = CALCULATE ( [Total Revenue], SAMEPERIODLASTYEAR ( DimDate[Date]
.[Year]) )Best Regards,
Dale
Interkoubess
Solution Sage
8 years agoHi ZataConsulting,
Please create a date table ( with continuous date) and link it to your "fact" table.
Then you can use these formula to calculate previous period revenue.
We can assist if you have any issues.
Ninter
ZataConsulting
8 years agoRegular Visitor
Total Revenue LY = CALCULATE ( [Total Revenue], SAMEPERIODLASTYEAR ( DimDate[Date].[Year]) )
Thankyou. The solution works.