Forum Discussion

tanakornp's avatar
tanakornp
Icon for Advocate I rankAdvocate I
9 years ago
Solved

Measurement not up to date value

I have created measurement to display the latest date from data entry by using following dax

LastSaleDate = FORMAT(MAX('ospos_prod ospos_sales'[sale_time]),"YYYYMMDD")

with following data, the mesurement return value 20160929 not 30.
While, createing new column and use the same command FORMAT(MAX('ospos_prod ospos_sales'[sale_time]),"YYYYMMDD") return 20160930.



I stuck with this issues for 4 hours already and have no idea what I did wrong.
Please help.



2 Replies

    • tanakornp's avatar
      tanakornp
      Icon for Advocate I rankAdvocate I

      I did forget to check the filter.  There is one filter that should not affect the result but it seems my poorly create relationships makes it affects the results. 

      Sorry for the dump questions. Thanks a lot.