Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

2 Replies
sunny_talwar

Try this approach instead:

The As-Of Table

swuehl
MVP
MVP

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).