Forum Discussion
Anonymous
3 years agoNot applicable
Create range based on previous row
I have this database with columns A and B and I would like to create columns C and D (START, END), in DAX or Power Query. Column D would just repeat column B, but column C should be ordered...
- 3 years ago
Hi Anonymous
If you wish to use DAX you may tryStart = MAXX ( FILTER ( CALCULATETABLE ( VALUES ( 'Table'[VALUE] ), ALLEXCEPT ( 'Table', 'Table'[ITEM] ) ), 'Table'[Value] < EARLIER ( 'Table'[Value] ) ), 'Table'[Value] )
tamerj1
Community Champion
3 years agoHi Anonymous
If you wish to use DAX you may try
Start =
MAXX (
FILTER (
CALCULATETABLE (
VALUES ( 'Table'[VALUE] ),
ALLEXCEPT ( 'Table', 'Table'[ITEM] )
),
'Table'[Value] < EARLIER ( 'Table'[Value] )
),
'Table'[Value]
)