Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi @yjk3140
please try
Paused Jobs =
SUMX (
VALUES ( 'Table'[job_id] ),
VAR MaxDate =
MAX ( 'Table'[timestamp] )
VAR LastRecord =
CALCULATETABLE ( 'Table', 'Table'[timestamp] = MaxDate )
VAR LastStatus =
MAXX ( LastRecord, 'Table'[status] )
RETURN
IF ( LastStatus = "PAUSED", 1 )
)
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |