Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

paulyeo11
Valued Contributor II

How to combine 2 table into 1 ?

Hi All


I have 2 Table :-


Table 1 Expression :-

If(Sum({<SEGMENT -= {'Related Coy'},aging_ar = {'>=91'} >}total_ar  * 1) > 0,

Sum({<SEGMENT -= {'Related Coy'},aging_ar = {'>=91'} >}total_ar  * 1))


Table 2 Expression :-

If(Sum({<SEGMENT -= {'Related Coy'},aging_ar = {'>=91'} >}total_ar  * 1) > 0,

Sum({<SEGMENT -= {'Related Coy'},aging_ar = {'>=91'} >}total_ar  * 1))



May i know how to combine both table into 1 Table. and user just need to click on the button >90 Day or > 120 day ?


Now i manage this issue by 2 sheet.


Paul Yeo

1 Solution

Accepted Solutions

Re: How to combine 2 table into 1 ?

PFA

Life is so rich, and we need to respect to the life !!!
12 Replies
paulyeo11
Valued Contributor II

Re: How to combine 2 table into 1 ?

my qvw

My Table 2 Expression , instead of 91 , it should be 121.

krishnacbe
Valued Contributor III

Re: How to combine 2 table into 1 ?

Create a variable and assign 91/ 121 based on button click and assign that variable in Expression.

The Expression in your Table should be as below

If(Sum({<SEGMENT -= {'Related Coy'},aging_ar = {'>=$(=vDays)'} >}total_ar  * 1) > 0,

Sum({<SEGMENT -= {'Related Coy'},aging_ar = {'>=$(=vDays)'} >}total_ar  * 1))

Sample.JPG

paulyeo11
Valued Contributor II

Re: How to combine 2 table into 1 ?

Hi Sir

Thank you very much , this will be my week end assignment.

Paul Yeo

DIrector

TDS Technology (S) P/L

Whatsapp +65 9326 1804

www.tdstech.com<http://www.tdstech.com>

Re: How to combine 2 table into 1 ?

PFA

Life is so rich, and we need to respect to the life !!!
paulyeo11
Valued Contributor II

Re: How to combine 2 table into 1 ?

‌Hi Anil

thank you very much , can’t wait to open the file attachment

Re: How to combine 2 table into 1 ?

PFA

Life is so rich, and we need to respect to the life !!!
paulyeo11
Valued Contributor II

Re: How to combine 2 table into 1 ?

‌Hi Anil

May I know why you have the patience to come out the alternative solution ?

I think there must be benefit you gain ?

Paul

Re: How to combine 2 table into 1 ?

May I know why you have the patience to come out the alternative solution ?

We can not say Patience, But i have time due to week end. So, I am trying with all possible inputs

I think there must be benefit you gain ?

What do you mean that? Do you think we are offering for Benefits, No way. We are just helpers. Anyway, Does this answer to your thread? If so, Please mark it as Help and Flag Correct answer If not, Please free to ask ..

Life is so rich, and we need to respect to the life !!!
paulyeo11
Valued Contributor II

Re: How to combine 2 table into 1 ?

Hi Anil

Thank you for your sharing. Your approach is very simple , but some time can be confusing.

I expect you to said the benefit on offer multiple solution , you will learn a lot more then other , and you will become very detail and clear about what the expression behaviors.

Now i am going to try the solution offer by another user. which create variable.

Paul Yeo

Community Browser