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: 
muhammadraza
Partner - Creator
Partner - Creator

Dividing two values from the same column or values which are not appearing in one row

Hello,

I have a straight table (please see attached), I want to create a third column (as indicated in the attached document) by dividing two values appearing in the same column or which are (also) appearing into two separate columns but which are not in one row, plz suggest how can I achieve this thing in Qlikview.

Best Regards,

Muhammad Raza

1 Solution

Accepted Solutions
rohit214
Creator III
Creator III

Dear Raza,

PFA hope it helps you

Regards

Rohit

View solution in original post

4 Replies
Not applicable

Hi Muhammad,

If your values are stored in separate fields (like totalvalue, incomevalue) just remove your column type

you'll then get total and income as 2 expressions based on the same dimension

you can divide them

If there are stored under one field (like value) based on Type dimension then use "above" function (or above(above(...) if not sorted)

best regards

chris

sujeetsingh
Master III
Master III

Try to implement it in the UI not in the Script

danieloberbilli
Specialist II
Specialist II

Please find attached as possible solution.

Directory;

LOAD Date,

     Points,

     num((Points / Previous(Points))-1,'##%')  as Increase

    

FROM

Mappe21.xlsx

(ooxml, embedded labels, table is Tabelle1) ;

rohit214
Creator III
Creator III

Dear Raza,

PFA hope it helps you

Regards

Rohit