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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
ValeriaBonini
Partner - Creator
Partner - Creator

Creating an inventory

Hi to everyone, i need to create an inventory with the cumulative sales based on a specific date.

ValeriaBonini_0-1662996820303.png

for now, i uploaded a table with product name, product qty and date and used the cumulative formula:

=RangeSum(Above(TOTAL Sum(qta), 0, RowNo(TOTAL)))

 

But if the user select a date from the list, I would like to see ALL THE PRODUCTS with the data < or = to the one selected and not only the products with that data like this:

ValeriaBonini_1-1662997006964.png

 

How can i obtain this result?? (without having to select manually allthe dates!)

ValeriaBonini_2-1662997048537.png

 

Labels (5)
3 Replies
Lisa_P
Employee
Employee

In your chart, your first measure 'qtatot' can have set analysis in it to limit the dates.

Insert this before the field being aggregated eg Count({<data={"<=$(=Max(data)")}>}qta)

ValeriaBonini
Partner - Creator
Partner - Creator
Author

Can you specify where do I have to add it? 

Lisa_P
Employee
Employee

Go tot the table and find the qtatot column in the Data section of the properties.  Modify the expression there to include the {<data={"<=$(=Max(data)")}>} before the field being aggregated