Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I need to get the list of distinct values filtered by the latest date of the date column of another table. Can you please suggest a way to do this?
Thank you
@Anonymous ,
based on your input I have created one sample table with date and name column and created measure to find the distinct names for the latest date from another table.
Distinct Names =
VAR _tempTable =
FILTER ( 'Table1', 'Table1'[Date] = MAX ( 'Table2'[Date] ) )
VAR _result =
CONCATENATEX ( DISTINCT ( _tempTable ), 'Table'[Name], "," )
RETURN
_result
Ouput:
Thanks,
Arul
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |