Forum Discussion
v-merpet
Microsoft Employee
6 years agoDealing with Blank Values By Using NEXT IN COLUMN
IF I were looking for a Pseudo Code description of my problem it would be this: -- IF(IsBlank(Value1),Lookup(Value2) RETURN First NON BLANK (Value1)Else(Lookup(Value2) NEXT Row IN C...
- 6 years ago
Hi v-merpet ,
We can create a calculated column using following DAX to meet your requirement:
Iteraction_New = IF ( ISBLANK ( 'Table'[Iteraction] ) || 'Table'[Iteraction] = "", CALCULATE ( FIRSTNONBLANK ( 'Table'[Iteraction], TRUE () ), FILTER ( 'Table', 'Table'[WorkID] = EARLIER ( 'Table'[WorkID] ) && 'Table'[Change Date] >= EARLIER ( 'Table'[Change Date] ) && 'Table'[Iteraction] <> "" ) ), [Iteraction] )
Best regards,
v-lid-msft
Community Support
6 years agoHi v-merpet ,
We can create a calculated column using following DAX to meet your requirement:
Iteraction_New =
IF (
ISBLANK ( 'Table'[Iteraction] )
|| 'Table'[Iteraction] = "",
CALCULATE (
FIRSTNONBLANK ( 'Table'[Iteraction], TRUE () ),
FILTER (
'Table',
'Table'[WorkID] = EARLIER ( 'Table'[WorkID] )
&& 'Table'[Change Date] >= EARLIER ( 'Table'[Change Date] )
&& 'Table'[Iteraction] <> ""
)
),
[Iteraction]
)
Best regards,