Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi, is it possible to create a calculated column with the date of the next occurrence of the value according to the picture below?
Thank you
Solved! Go to Solution.
Please try this column expression
Next Date =
VAR vThisDate = Table[Date]
VAR vNextDate =
CALCULATE (
MIN ( Table[Date] ),
ALLEXCEPT (
Table,
Table[Value]
),
Table[Date] > vThisDate
)
RETURN
vNextDate
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hellou @mahoneypat @, can you please help me again? I need almost the same. but I need to create a measure instead of calculated column. I need to find out the nearest date of occurence
I create a virtual table CD_MSISDN = value):
I don´t know how to create Next contact column.
Thank you
Please try this column expression
Next Date =
VAR vThisDate = Table[Date]
VAR vNextDate =
CALCULATE (
MIN ( Table[Date] ),
ALLEXCEPT (
Table,
Table[Value]
),
Table[Date] > vThisDate
)
RETURN
vNextDate
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.