Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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, have duplicate records, based on latest date(13/8/2019) , need to create custom column(Result) to update the status.
Solved! Go to Solution.
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
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |