Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |