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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
AndreaManfredi
Contributor
Contributor

Max count of stock for every week

Hello,

 

I have a dataset that looks like this way:

several levels of pieces (VAN) counted, that represent stock registered on any single day

a specific day (report date)

the related week (report date week)

 

Report Date.week | Report Date | Count(VAN) 

W01                          01/01/24         3373

W01                          03/01/24         4581

W01                          05/01/24         5285

W01                          06/01/24         2536

W02                          09/02/24          1853

W02                          10/02/24           5738

W02                          12/01/24          3752

W03                          15/01/24          2784

W03                          18/01/24          1836

W03                           19/01/24          5184

W03                            20/01/24         3284

 

what I need is to have in this table, only the max count of van for each week: as a result, I should have only one day per every week, when the maximum count of van is registered 

thank you for the help! 

Labels (1)
1 Reply
Anil_Babu_Samineni

@AndreaManfredi Perhaps this in your measure with other two as dimensions?

Max(TOTAL <[Report Date.week]> [Count(VAN)])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful