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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
stascher
Partner - Creator III
Partner - Creator III

dynamic set analysis based on dimension

Given the following data:

Timepointvalue

c1d1.a

1
c1d1.b2
c1d1.c3
c1d2.a4
c1d2.b5
c1d2.c6

 

I want to create a line chart where Timepoint is the dimension and the measure is the value at that Timepoint divided by the value at the previous/corresponding ".a" base Timepoint. 

Timepointvalueresult

c1d1.a

11/1=1
c1d1.b22/1=2
c1d1.c33/1=3
c1d2.a44/4=1
c1d2.b55/4=1.25
c1d2.c66/4=1.5

 

There will always be an ".a" timepoint but the number of following timepoints is not fixed. If it helps, I have the ability to add a BaseTimepoint column that references the associated ".a" timepoint for each record. 

Is this possible to render without any additional tables/mapping? 

Thank you,

Steven

Labels (1)
1 Reply
sunny_talwar

If you can create two new fields like this

Table:
LOAD *,
	 SubField(Timepoint, '.', 1) as Base,
	 SubField(Timepoint, '.', 2) as Time;
LOAD * INLINE [
    Timepoint, value
    c1d1.a, 1
    c1d1.b, 2
    c1d1.c, 3
    c1d2.a, 4
    c1d2.b, 5
    c1d2.c, 6
];

image.png

You should then be able to use this

value/Only(TOTAL <Base> {<Time = {'a'}>} value)