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: 
ziadm
Specialist
Specialist

Set Analysis Syntax

I have a Calendar that looks like this

   

CALENDAR_DATEWEEK_NUMBERPrYrWeek
5/2/2016201614201514
5/3/2016201614201514
5/4/2016201614201514
5/5/2016201614201514
5/6/2016201614201514
5/7/2016201614201514
5/8/2016201614201514

WEEK_NUMBER is the Week the date and PrYrWeek is the week number aligned from the last Year, 

I have a chart the Dimension by WEEK_NUMBER and Sum(Sales)  strgiht forward (NP)

I need to add another expression to the chart to Sum(Sales of PrYrWeek)

like this

Sum({ $<WEEK_NUMBER = {"=$(" & PrYrWeek & ")" } >} Sales))  . This does not work .. Any idea

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

Try this approach instead:

The As-Of Table

swuehl
Champion III
Champion III

I think you should apply something like an AsOf table

The As-Of Table

or a canonical date

Canonical Date

You basically need to create a link table with a field you can use as dimension in your chart, where each field value links to a calendar date field value from current and previous year (multiple records per dimensional value).