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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajkumar
Creator
Creator

How to get upper row value in current row

Hi every one ,

I want achieve below results in set analysis. can any one help me?

 

Input:

DAY

 SALES
1500
2400
3200
4400
5300

 

Output:

DAY

 SALES
1500
2400
340% (day 3/day1)
4400
575 %(day 5/day4)
2 Replies
RadovanOresky
Partner Ambassador
Partner Ambassador

Hi, I believe that Above() function could help you, if you have that data already in a straight table object.

You can define an offset parameter, that will enable you to skip rows.

https://help.qlik.com/en-US/sense/June2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/InterReco...

Hope it helps,

-RADO-

Zhandos_Shotan
Partner - Creator II
Partner - Creator II

Hi

Cannot understand your output table for day3 and day5 rows.

But answer to title question is Above() function with offset parameter.

Read more: 

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/InterReco...