Forum Discussion

PabloGiraldo's avatar
PabloGiraldo
Helper IV
2 years ago
Solved

Calculate Date difference if

Hi,

I have a matrix with unique rows. Each row goes through multiple steps (1 through 5). I would like to calculate the Date Difference betwen Today() and the "Started at" date, IF row is at step 5, otherwise leave blank or dont calculate anything.

 

Some rows might be on step 2 or 3, but once step 5 is shown on matrix, that's when i would like to calculate the datediff.

 

All the data i have are from Columns. I have not created any measures.

Thank you.

  • Anand24's avatar
    Anand24
    2 years ago

    PabloGiraldo ,
    Yes you can. Try below DAX in a new calculated measure:

    Date_Difference = IF(MAX(submittalsacc_tasks[assigned to]) = "Ebuilder External System",DATEDIFF(TODAY(), MAX(Amazon[DATE]), DAY), BLANK())

     

     

    Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

    Proud To Be a Super User !!!
    LinkedIn

5 Replies