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 There,
I want to create a measure which gives the next date in the column for the entityID in that row. For instance, in the table below, I want a new column which, let's say entity ID 92 the date is 29/06/2021 then it needs to give the date 29/09/2021.
Solved! Go to Solution.
@Annemie19 You can use this:
Column =
VAR CurrentRowEntity = Anne[EntityID]
VAR CurrentRowDate = Anne[MeasurementDate]
VAR SameRows =
FILTER (
Anne,
Anne[EntityID] = CurrentRowEntity
&& Anne[MeasurementDate] > CurrentRowDate
)
VAR Result =
MINX ( SameRows, Anne[MeasurementDate] )
RETURN
IF ( Result = BLANK (), CurrentRowDate, Result )
@Annemie19 You can use this:
Column =
VAR CurrentRowEntity = Anne[EntityID]
VAR CurrentRowDate = Anne[MeasurementDate]
VAR SameRows =
FILTER (
Anne,
Anne[EntityID] = CurrentRowEntity
&& Anne[MeasurementDate] > CurrentRowDate
)
VAR Result =
MINX ( SameRows, Anne[MeasurementDate] )
RETURN
IF ( Result = BLANK (), CurrentRowDate, Result )
@Annemie19 , try a new column like
minx(filter(table, [entityID] = earlier([entityID]) && [measuredate] >earlier([measuredate])),[measuredate])
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |