Forum Discussion
Aroc
8 years agoFrequent Visitor
Lookupvalue only first result
Hello I've got a table that looks like this: Column A Column B Column C Calculated Column 3 99 P 18 =LOOKUPVALUE([Column C];[Column A];1;[Column B];"99") 4 88 P 144 =LOOKUPV...
- 8 years ago
You should use EARLIER() in your filter:
Column = CALCULATE ( FIRSTNONBLANK ( Table4[Column C], TRUE () ), FILTER ( Table4, Table4[Column A] = 1 && Table4[Column B] = EARLIER ( Table4[Column B] ) ) )Regards,
v-sihou-msft
8 years agoMicrosoft Employee
You should use EARLIER() in your filter:
Column =
CALCULATE (
FIRSTNONBLANK ( Table4[Column C], TRUE () ),
FILTER (
Table4,
Table4[Column A] = 1
&& Table4[Column B] = EARLIER ( Table4[Column B] )
)
)
Regards,
TAMOREIRA
6 years agoFrequent Visitor
I am working on a patient flow projected and was having such a hard time looking up the earliest date of a consult based on patient number and visit code (consult vs. treatment vs. simulation). This solution worked for me! Thank you so much.