Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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])
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
9 | |
9 | |
6 | |
5 |
User | Count |
---|---|
18 | |
15 | |
10 | |
9 | |
8 |