Forum Discussion
atifbutt
8 years agoFrequent Visitor
If condition with max date
Hi,
I'm building dashboard in Direct Query mode.
Data = Asatdate, UserID, Name, Ethnicity
I'd like to create a oclumn "Ethnicity Type" and to put values from Ethnicity column if the UserID field is not duplicate, if it is duplicate then put the latest value for Ethnicity by date.
Thank you in advance for the help.
Thanks
Atif
Thanks for replying Xiaoxin. I've found the solution via sql query :).