Forum Discussion
Anonymous
6 years agoNot applicable
Need help to create custom column
Hi Team, Could you please me to create custom column for below sample data: Logic: need to update the same status for duplicate domains based on latest notification date. Example: Domain A, ha...
- Anonymous6 years ago
Hi Anonymous,
You can write a variable to lookup the latest date based on current domain, then you can simply use current domain and latest date variable to find out the last status.
column = VAR _lastdate = CALCULATE ( MAX ( Table[Date] ), FILTER ( Table, [Domain] = EARLIER ( Table[Domain] ) ) ) RETURN CALCULATE ( MAX ( Table[Status] ), FILTER ( Table, [Domain] = EARLIER ( Table[Domain] ) && [Date] = _lastdate ) )Regards,
Xiaoxin Sheng
Anonymous
6 years agoNot applicable
Hi Anonymous,
You can write a variable to lookup the latest date based on current domain, then you can simply use current domain and latest date variable to find out the last status.
column =
VAR _lastdate =
CALCULATE (
MAX ( Table[Date] ),
FILTER ( Table, [Domain] = EARLIER ( Table[Domain] ) )
)
RETURN
CALCULATE (
MAX ( Table[Status] ),
FILTER ( Table, [Domain] = EARLIER ( Table[Domain] ) && [Date] = _lastdate )
)
Regards,
Xiaoxin Sheng