Forum Discussion
Anonymous
4 years agoNot applicable
Calculated column (DAX) with next consecutive value
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 fin...
- 4 years ago
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
Jihwan_Kim
4 years agoSuper User
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
- Anonymous4 years agoNot applicable
Thanks!!