The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi everyone
I have a problem and I can not solve it.
I have a table like this:
I need to build a column calculated with the actual status, like this:
I am trying but probably I am doing something wrong.
Does someone help me?
Solved! Go to Solution.
Hi @Anonymous
You want a Column in DAX or M? It's one in DAX
Actual =
VAR CurP = yourTable[Product]
VAR MaxDate = MAXX(FILTER(yourTable,yourTable[Product]=CurP),[Date])
RETURN
MAXX(FILTER(ALLEXCEPT(yourTable,yourTable[Product]),yourTable[Date]=MaxDate),yourTable[Status])
Hi @Anonymous
You want a Column in DAX or M? It's one in DAX
Actual =
VAR CurP = yourTable[Product]
VAR MaxDate = MAXX(FILTER(yourTable,yourTable[Product]=CurP),[Date])
RETURN
MAXX(FILTER(ALLEXCEPT(yourTable,yourTable[Product]),yourTable[Date]=MaxDate),yourTable[Status])