Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to call next value in the table ?

Hi All,

Need your assistance in doing this calculation?

LevelHeadcountRatio
VP10=40/10
Director

40

=90/40
Sr.Manager90=148/90
Manager148=200/148
Assistant Manager200=530/200
Team Lead530=1900/530
Executive1900NA

I have written the calculation which i need to do in Ratio Column ?

Thanks in Advance!!

Regards

Anurag

2 Replies
Gysbert_Wassenaar

Temp:

LOAD Level, Headcount, recno() as recno FROM ...somewhere...;

Result:

LOAD Level, alt(Headcount, previous(Headcount)/Headcount,'NA') as Ratio

Resident Temp order by recno desc;

drop Table Temp;


talk is cheap, supply exceeds demand
Josh_Good
Employee
Employee

Anurag,

If you'd like to do this on a chart in the UI, you can use the Below function.  The Ratio expression would be:

Below(Sum(HeadCount)) / Sum(HeadCount)

This approach will require you to be careful about the sorting of the table.

-Josh

Qlik