Forum Discussion
NMOORE
2 years agoHelper II
Dax Table Summarize using Lookup
Hi, I want to summarize a table keeping the corresponding values/Dates from a neighbouring column after an expression. As the example shows I'm hoping to summarize the animals, calculate the ...
- 2 years ago
IDEAL_Backtest_Details = ADDCOLUMNS( SUMMARIZE(Backtest_Details, Backtest_Details[Animals], "Analysis Date", min(Backtest_Details[Analysis Date]) ) , "Final Date", LOOKUPVALUE(Backtest_Details[Final Date], Backtest_Details[Animals], [Animals], Backtest_Details[Analysis Date], [Analysis Date]) )something like this?
IP: Backtest_Details
OP:
- 2 years ago
Thanks alot for this, I was playing around with it for a while trying to do exactly this but just couldnt get there. Much appreciated.
sevenhills
2 years agoSuper User
IDEAL_Backtest_Details =
ADDCOLUMNS(
SUMMARIZE(Backtest_Details,
Backtest_Details[Animals],
"Analysis Date", min(Backtest_Details[Analysis Date])
)
, "Final Date",
LOOKUPVALUE(Backtest_Details[Final Date],
Backtest_Details[Animals], [Animals],
Backtest_Details[Analysis Date], [Analysis Date])
)
something like this?
IP: Backtest_Details
OP:
- NMOORE2 years agoHelper II
Thanks alot for this, I was playing around with it for a while trying to do exactly this but just couldnt get there. Much appreciated.
- sevenhills2 years agoSuper User
Please mark my reply as solution if you like it and also helps for the folks in future those who refer this thread.