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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to create dynamic comparison table with trend , based on prior period rank ?

Hi All ,

How to create dynamic comparison table with trend , based on prior period rank ?

Data Input

    

Year-QtrStakeholderLocationStrike_Intensity_Rank
2016-Q1Chromite Inc.Frankfurt6
2016-Q2Falcon SphereLisbon4
2016-Q3Drome Lui and CO.Seol8
2016-Q4A&A ConfectionarySychelles8
2016-Q1Chromite Inc.-5
2016-Q2Falcon Sphere-6
2016-Q3Drome Lui and CO.-8
2016-Q4A&A Confectionary-3
2017-Q1Chromite Inc.Frankfurt2
2017-Q2Falcon SphereLisbon7
2017-Q3Drome Lui and CO.Seol3
2017-Q4A&A ConfectionarySychelles8
2017-Q1Chromite Inc.-8
2017-Q2Warton Engineering-8
2017-Q3Drome Lui and CO.-4
2017-Q4A&A Confectionary-9
2018-Q1Chromite Inc.Frankfurt9
2018-Q2Falcon SphereLisbon6
2018-Q3Drome Lui and CO.Seol4
2018-Q4A&A ConfectionarySychelles1
2018-Q1Chromite Inc.-6
2018-Q2Falcon Sphere-7

OUPUT : When Default Period Range = 1

Prior Period comparison.png

Default period Range

Default Period Range.png

Thanks & Regards

Shekar

27 Replies
sunny_talwar

Then use this

Location = {"*"}

Don't take me in a wrong way, but are you not comfortable in using simple set analysis like this? I strongly suggest mastering set analysis as that is one of the easier things you can quickly learn.

shekhar_analyti
Specialist
Specialist
Author

default period range functionality


Default Period Range.png

sunny_talwar

What exactly is that?

shekhar_analyti
Specialist
Specialist
Author

Not at all . Any advice from you is highly welcomed .

That was not a problem though . Extremely Sorry for trivial stuff .

shekhar_analyti
Specialist
Specialist
Author

Ok .

These are some set of values in Input box .

When value is 1 , then we get result exactly like what you have shared . Which means take period from dimension values and compare its rank with a year back data (rank) .

So when this value is 2 then , it should toggle 2 year back .

for example :   for 2018-Q1 , it should compare rank of 2016-Q1 .

So when this value is 3 then , it should toggle 3 year back .

for example :   for 2018-Q1 , it should compare rank of 2015-Q1 .

sunny_talwar

check now...

shekhar_analyti
Specialist
Specialist
Author

Namo  .. Please Take a bow from myself

shekhar_analyti
Specialist
Specialist
Author

Hi Sunny Bhai , stalwar1

I tried alternate way using replace function and variable , but in vain .

Can you please  help me know that what is wrong with it ?

Solution.png

Thanks & Regards

Shekar

sunny_talwar

You want this to work in set analysis? But set analysis only get evaluated once per chart.... you cannot have dimension wise expansion of set analysis... unfortunately, this won't work...

shekhar_analyti
Specialist
Specialist
Author

Ok . Any other alternate way to your existing solution . Probably at script level .