Forum Discussion
Ssmit
8 years agoFrequent Visitor
Filtering based on the earliest known activityTime date per ticket
Dear all, I'm trying to filter through tickets and I wanted to display the tickets where the activityTime is the earliest value and filter out everything else that has the same ticketNumber. ...
- 8 years ago
HI Ssmit
Try this calculated Table
New Table = VAR tickets = SELECTCOLUMNS ( VALUES ( Table1[ticketNumber] ), "Ticket_Number", [ticketNumber] ) RETURN GENERATE ( tickets, CALCULATETABLE ( TOPN ( 1, Table1, Table1[activityTime], ASC ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
HI Ssmit
Try this calculated Table
New Table =
VAR tickets =
SELECTCOLUMNS (
VALUES ( Table1[ticketNumber] ),
"Ticket_Number", [ticketNumber]
)
RETURN
GENERATE (
tickets,
CALCULATETABLE ( TOPN ( 1, Table1, Table1[activityTime], ASC ) )
)- Zubair_Muhammad8 years agoCommunity Champion
- Ssmit8 years agoFrequent Visitor
Zubair_Muhammad,
Thank you, this does exactly what I need it to do!
much appreciated!