Forum Discussion

aaron1225's avatar
aaron1225
Helper I
7 years ago
Solved

Date Measures Help?

I have used PBI quite a bit but started a new position where I am setting up for the first time in a long while.  For some reason I am having issues with my date fuctions.  Trying to get the endofthe...
  • v-yuta-msft's avatar
    v-yuta-msft
    7 years ago

    aaron1225 ,

     

    I have found the reason, functions like ENDOFMONTH(), ENDOFQUARTER() and ENDOFYEAR() will only return last day in the exist column, not the real ending day. So you can modify your measure using DAX as below to achieve what you want to achieve:

    Difference = DATEDIFF(TODAY(), EOMONTH(ENDOFQUARTER(Table1[Date]), 0), DAY)
    

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.