The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
HI All
I need some help with one DAX formula.
I have 2 columns with dates.
Signed = Date when contract was signed
LOA Signature Date
Currently, to calculate the ageing I was only using the Signed Column.
but
IF ( SFF[LOA Signature Date] = BLANK (), 'SFF[Signed])
or something like this? any help? thanks
Solved! Go to Solution.
@romovaro , Try like
BL in Months = DATEDIFF(coalesce(SFF[LOA Signature Date], SFF[Signed]), TODAY(), MONTH)
Hey @romovaro ,
how do you want to use that? Is that a calculated column?
In this case the following approach should work:
BL in Months =
VAR vCompareDate =
IF (
SFF[LOA Signature Date] <> BLANK (),
SFF[LOA Signature Date],
SFF[Signed]
)
RETURN
DATEDIFF ( vCompareDate, TODAY (), MONTH )
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Hey @romovaro ,
how do you want to use that? Is that a calculated column?
In this case the following approach should work:
BL in Months =
VAR vCompareDate =
IF (
SFF[LOA Signature Date] <> BLANK (),
SFF[LOA Signature Date],
SFF[Signed]
)
RETURN
DATEDIFF ( vCompareDate, TODAY (), MONTH )
If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
Best regards
Denis
Blog: WhatTheFact.bi
Follow me: twitter.com/DenSelimovic
Thanks Denis. It works
Hey @romovaro ,
I'm happy it worked 😊.
Could you also mark my approach as solution as it also worked?
Like this the next person who is stumbling across this post will see immediately which approaches work without scrolling through the post.
Thank you and have a great day
Denis
Thanks. It works