Forum Discussion

Pmorg73's avatar
Pmorg73
Post Patron
5 years ago
Solved

Datediff using months

Hi hopefully a quick query for a Guru.   i created a calculated column for an age in months as follows: No of months old = -DATEDIFF(TODAY(), '01_Calendar'[Date], MONTH)   It works out the valu...
  • v-janeyg-msft's avatar
    v-janeyg-msft
    5 years ago

    Hi, Pmorg73 

     

    Sorry for not being able to reply you in time due to busy Monday.

    If you use a calendar table date column in your visual, you can easily modify your measure.

    Like this:

    Measure =
    MAXX (
        FILTER ( 'Table', [job summary] = SELECTEDVALUE ( 'Table'[job summary] ) ),
        RELATED ( 'Table 2'[Date] )
    )

    If it doesn’t solve your problem, please feel free to ask me.

     

    Best Regards

    Janey Guo

     

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