Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Itay113
Contributor II
Contributor II

Display number per category

I have a table with these columns: name, category, status, dtime. I want to get number of notActive status per category for each name his latest status even if I filter specific dtime and latest name’s status dtime is before filtered dtime. For example name - jack, category - worker, status - available, dtime - 2025-01-19 20:00:00, name - jack, category - worker, status - unavailable , dtime - 2025-01-19 21:00:00, name - mike, category - worker, status - available, dtime - 2025-01-19 20:00:00. So if I filter to 2025-01-19 21:00:00 I want to get category - worker, status - unavailable, number - 1
category - worker, status - available, number - 1

Labels (3)
2 Replies
Qrishna
Master
Master

didnt really get what you are trying to achieve here. all i see is when you select 2025-01-19 21:00:00, you selecting that particular row, so the output is what you mentioned here. so you'll see category - worker, status - unavailable.not sure where number - 1 came frfom?

Chanty4u
MVP
MVP

Try this 

Count({< 

    dtime = {"=dtime = Max({1} Total <name> dtime)"}

>} name)