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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis


Hi

I want a straight table that shows weekly sales and monthly sales.  When 1 week is selected how do I get the monthly column to show the sales for the whole month to which the week belongs.

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like this if your fields are named Week and Month:

sum({<Week=, Month={'$(=max(Month))'}>}Sales)

If you have data for multiple years you might need to add the year to the set modifier too. Something like Year={'$(=max(Year))'}


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like this if your fields are named Week and Month:

sum({<Week=, Month={'$(=max(Month))'}>}Sales)

If you have data for multiple years you might need to add the year to the set modifier too. Something like Year={'$(=max(Year))'}


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Thanks very Much