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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QTY Variance

Hey guys.

I have a table i need to see the changes in Quantity over a week. I only have a weeks worth of data. This is my current formula:

sum({$<Day={$(=Only()-1)}>}(QtySold))

I set it as an expression as well as sum(QtySold) to show the current days Qty. I have Days as a dimension. The formula given above is not working. Can anyone help on this and maybe supply a variance expression formula also?

Thanks you so much.

1 Solution

Accepted Solutions
johnw
Champion III
Champion III

You can't do it with set analysis because the set is only calculated once for your entire chart, not once per row in your chart.

I recommend handling it with an AsOf table to connect everything together. See attached example for comparing years.

View solution in original post

4 Replies
Not applicable
Author

anyone got any ideas please?

Not applicable
Author

anyone at all?

johnw
Champion III
Champion III

You can't do it with set analysis because the set is only calculated once for your entire chart, not once per row in your chart.

I recommend handling it with an AsOf table to connect everything together. See attached example for comparing years.

Not applicable
Author

Thanks so much man. Im going to look into it today.