Forum Discussion

ZataConsulting's avatar
ZataConsulting
Regular Visitor
8 years ago
Solved

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...
  • v-jiascu-msft's avatar
    8 years ago

    Hi ZataConsulting,

     

    Please try again without the ".[Year]" part. 

     

    Total Revenue LY =
    CALCULATE ( [Total Revenue], SAMEPERIODLASTYEAR ( DimDate[Date].[Year] ) )
    

    Mdx_Script_Model

     

     

    Best Regards,

    Dale