SQL Server Analysis Services show last session to a cube

Display the most recent sessions to a cube in SSAS

This script is useful for checking how recently people have been using a cube

FROM $system.discover_sessions
--WHERE session_status = 1
0 means "Idle": No current activity is ongoing.
1 means "Active": The session is executing some requested task.
2 means is "Blocked": The session is waiting for some resource to continue executing the suspended task.
3 means "Cancelled": The session has been tagged as cancelled.
ORDER BY session_start_time desc