Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can you sum up 3 attributes into 1 attribute, whilst showing other attiributes...

i output the following..

error loading image

but what i want to do is take Other_Oth, Other - Loan Shortfall and Other Accountin Trading Book; Risk Banking Book and combine these into a new field called Other so the output looks like this:

error loading image

Is this possible? without a mapping table> My code for this is..

error loading image

Please help!

1 Reply
johnw
Champion III
Champion III

I'd handle it with the data model by adding an [Account Group] field:

[Account Groups]:
LOAD * INLINE [
Account Group, Account Description
Buy and Hold, Buy and Hold
Fees and Commissions, Fees and Commissions
Net Interest Margin/Net Carry - Other, Net Interest Margin/Net Carry - Other
New Trades, New Trades
Other, Other - Accounting Trading Book; Risk Banking Book
Other, Other - Loan Shortfall
Other, Other_OTH
Reserves_RES, Reserves_RES
];

You could left join this onto your main data if you didn't want an extra table. You could also make it a mapping table and map during the initial load. You could just use an if() during the load. In any case, the important part is just that you have an 'Other' account group that includes the desired account descriptions, and that you use the account group in the chart instead of the account description.