Forum Discussion

martinkoe's avatar
martinkoe
Helper I
5 years ago
Solved

Measure does not work when published - Year end estimate (YEE)

Hi folks,   i got a problem with a measure. It works in the desktop, but once published all tables and visuals show an error.  Tried different users, app and web based publishing, nothing works.  ...
  • martinkoe's avatar
    martinkoe
    5 years ago

    Dear all,

     

    got it, it was an measure error. Nothing to do with gateway whatsoever.

     

    RIGHT:

    Sales PYE total = CALCULATE( [Sales YTD POS], ENDOFYEAR(DATEADD(data[Date],-1,YEAR)))
    Sales YEE = [Sales PYE total]*(1+[Sales growth rate POS])

     

    WRONG:

    Sales YEE = CALCULATE( [Sales YTD POS], ENDOFYEAR(DATEADD(data[Date],-1,YEAR),"31.12"))*(1+[Sales growth rate POS])

     

    //M