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

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

Linking/Mapping two tables

Dear Felip, Wishvanath, & all dear experts,

I seek your expert knowledge to overcome my issue!. In fact  Mr Vishwanath, Ranathunga helped me towards this to some way. I may again present you the case.

I have a requirement to get the higher approval for expenses which have been exceeded the budgetary allowances! This I have to do quarterly. Easily I may arrange the 1st Table with lots of expressions basically actual & the budget.(Need to consider the cumulative). For the reasons for each exceeded expenses I have to go through the list & find out. Once I arranged that I may arrange them in a table (2nd table). Here as you can see some reasons are there for all the Branch codes & for other may be 1st  or 2nd . My requirement is as follows!.

Pick those reasons to be appeared before appear each expenses items which are having negative cumulative variance!

If I use the Concat, it seems all the reasons are linked to all Branches.

Since many Branches are involved, I cannot do this for individual Branches if so actually no issue because I can pick reasons from separate table arranged for that particular Branch & so on. But this is very long process. Hence please advice, help me to achieve this.

Each Branch should pick the relevant reasons highlighted in the reason table

There are two common field such as BR_CODE & TYPE,

Variance table

         

BR_CODECATEGORYNOTE_CODETYPEACT_MONTHBUD_MONTHVARIANCE_MONTHACT_CUMULATIVEBUD_CUMULATIVEVARIANCE
RASTAFF EXPENSES500STAFF SALARIES988,677.41973,840.00-14,837.417,507,077.417,480,400.00-26,677.41
RASTAFF EXPENSES513STAFF WELFARE45,159.0628,000.00-17,159.06242,390.18224,000.00-18,390.18
RASELLING EXPENSE702BUSINESS PROMOTION89,324.7928,725.00-60,599.79259,798.33265,000.00-29,998.33
EMSTAFF EXPENSES500STAFF SALARIES1,000,000.00973,840.00-14,837.418,500,000.007,480,400.00-26,677.41
EMSTAFF EXPENSES513STAFF WELFARE45,159.0628,000.00-17,159.06350,000.00500,000.00-18,390.18
EMSELLING EXPENSE702BUSINESS PROMOTION89,324.7928,725.00-60,599.79259,798.33229,800.00-29,998.33

Table(with reasons)

       

BR_CODETYPEREASON_1REASON_2REASON_3REASON_4REASON_5
RASTAFF SALARIESUnbudgeted_ExpenseNew_Recruits_MESNew_Recruits_UnderwritersNew_Recruits_ASMNew_Recruits_accounts
EMSTAFF SALARIESUnbudgeted_ExpenseNew_Recruits_MES
RASTAFF WELFAREWedding Gift_UWWedding Gift_MEWedding Gift_ManagerTea related ExpensesStaff_Uniform_Peon
EMSTAFF WELFARE Tea related Expenses
RABUSINESS PROMOTIONTown_StormingCustomer Get togetherFinance company cocktalDonation
EMBUSINESS PROMOTIONTown_Storming

Regards

Neville

1 Solution

Accepted Solutions
nevilledhamsiri
Specialist
Specialist
Author

Dear Wishwarath,

Any idea towards this!. If we do the join  can it be made possible. Since two common fields are there, can it be dane

Neville

View solution in original post

3 Replies
nevilledhamsiri
Specialist
Specialist
Author

Dear Wishwarath,

Any idea towards this!. If we do the join  can it be made possible. Since two common fields are there, can it be dane

Neville

qliksus
Specialist II
Specialist II

Since both the tables are having a common field  BR_CODE just connect the two tables using that and use the below expression

If ( Variance<0 , Maxstring(REASON_1) )

dinuwanbr
Creator III
Creator III

hi,

Still m not so clear about what u want.

Is this fit to ur requirement?

Rgds,

Tharindu