Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a table that records activities session_id and a timestamp. (see diagram) I would like to create a table with only the latest entry for each session_id. The rows marked in yellow. Can someone please help.
Hi @lscoffield,
Could you please mark the proper answers as solutions?
Best Regards,
Dale
Hi @lscoffield,
You also can add create a measure and add it in the Visual Level filter and filter out the blanks.
Measure = VAR maxTimeStamp = CALCULATE ( MAX ( 'table'[timestamp] ), ALLEXCEPT ( 'table', 'table'[session_id] ) ) RETURN IF ( MIN ( 'table'[timestamp] ) = maxTimeStamp, 1, BLANK () )
Best Regards,
Dale
Hi,
In Powerbi Select Modelling > New Table and try the code below.
Last Date = SUMMARIZE('Your Table', 'Your Table'[Session ID], "Last Date", MAX('Your Table'[TimeStamp]))
HTH
D
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
79 | |
67 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |