Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi everyone,
I need help with what I think could be a fairly simple issue, but I'm still a newbie and really can't get it to work.
I would like to create a calculated column (with DAX) to find, for every instance in my table, its next consecutive value.
The "Goal" column should be the output:
| Occurrence | Value | Goal |
| AAAA | 1 | 3 |
| AAAA | 3 | 4 |
| AAAA | 4 | 10 |
| AAAA | 10 | |
| BBBB | 1 | 2 |
| BBBB | 2 | 8 |
| BBBB | 8 | 11 |
| BBBB | 11 |
I really tried looking for the same issue, but nothing seems to fit.
Thanks a lot to whoever will help!🙏
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Goal CC =
VAR currentoccurrence = Data[Occurrence]
VAR currentvalue = Data[Value]
VAR newtable =
FILTER (
Data,
Data[Occurrence] = currentoccurrence
&& Data[Value] > currentvalue
)
VAR goalvalue =
MINX ( newtable, Data[Value] )
RETURN
goalvalue
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Goal CC =
VAR currentoccurrence = Data[Occurrence]
VAR currentvalue = Data[Value]
VAR newtable =
FILTER (
Data,
Data[Occurrence] = currentoccurrence
&& Data[Value] > currentvalue
)
VAR goalvalue =
MINX ( newtable, Data[Value] )
RETURN
goalvalue
Thanks!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 21 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 59 | |
| 53 | |
| 41 | |
| 31 | |
| 31 |