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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Divide By rows in the same column

Hello,

I need to calcule row 2 / row1 same column

My Formula is Num(sum({<Day_Date=>}if(Data_Date >= A_date and Data_Date <= AB_date, Ray)),'#.##0,00')

How to get the final result with that formula,

I attached an excel example for better comprehenssion,

 

Thanks!!

1 Reply
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You should try to load the data in descending order and then use previous function to find the previous record.

Something like this.

Load *,Previous/Current as NewField From xyx order by date desc;

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!