Forum Discussion
Andregewehr
Helper I
3 years agoAdd new column with next non blank value
Hi everyone, I have this table: I want to add a new column filling the blank values with the next value for each SKU (A, B and C) and the next date. I tried this DAX formula: FIRS...
- 3 years ago
hi Andregewehr
try like:
Column =MAXX(TOPN(1,FILTER('Table','Table'[SKU] = EARLIER('Table'[SKU]) && 'Table'[Date] <= EARLIER('Table'[Date]) && 'Table'[Stock] <>BLANK()),'Table'[Date]),'Table'[Stock])
FreemanZ
Super User
3 years agohi Andregewehr
try like:
Column =
MAXX(
TOPN(
1,
FILTER(
'Table',
'Table'[SKU] = EARLIER('Table'[SKU]) && 'Table'[Date] <= EARLIER('Table'[Date]) && 'Table'[Stock] <>BLANK()
),
'Table'[Date]
),
'Table'[Stock]
)
Andregewehr
Helper I
3 years agoOh my god, that was perfect! Thank you!