Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Not applicable

Previous Value - Set Analysis - Drill Down

I got two questions:

1) What is the best way to figure out how to understand Set Analysis syntax? I have used the Help and Wizard and they have been difficult to understand especially since I have applied the examples and don't necessarily get what it says. Especially in a drill down situation.

2) How do you get the previous value using set analysis for drill down on a Pivot or Table Chart?

Using the Trial and Error approach to figure out the syntax to this Set Analysis and just can't make this code work or anycode work for that matter.

I am using ABOVE or BELOW, but it isnt the same and doesnt drill down well because it doesnt accomdate for the level up.

I have been trying to bring the values of the previous value to compare against and create a variance in this situation below. I have 10 cycles in a month and days in each cycle which I want to compare against. So I would love to be able to see

Cycle 1 vs Cycle 2 and then drill down and get Cycle 1 Month 1 Day1 vs Cycle 2 Month 2 Day 1 and so on.

Here are some of the codes I tried to figure this one out:

Sum({<[CYCLE]={$(#=(Cycle)-1)}>}Cycle_COUNT)

Sum({<[CYCLE_DATE]={$(=(Cycle_DATE)-1)}>}Cycle_COUNT)

Sum({<[CYCLE_DATE]={$(=(vCDATE)-1)}>}Cycle_COUNT) - Variable Version ( Where gets current selection date)

Row LabelsSum of Counts1Sum of Counts2Sum of Amount1Sum of Amount2Previous Value Amt1
1303026501600
1/1/201214100100---
1/2/201223150100---
1/3/201232200200---
1/4/201241100100---
2/1/201214200200100
2/2/201223250100150
2/3/201232300200200
2/4/201241200100100
3/1/201214300100200
3/2/201223350100250
3/3/201232300200300
3/4/201241200100200
23030180023002650

Thanks for your help.

1 Reply
chematos
Valued Contributor II

Re: Previous Value - Set Analysis - Drill Down

I think this is a case that would be better to do in the load script creating a table with that values already calculated because inter-register functions work only over rows and columns

Community Browser