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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

split data

Hi All,

I have below data. The values in the location column has both Location and Sub-Location data. So i want to move the sub-location values into separate fields.

Lookup_Table: //Location to Sub-location mapping table.

LOAD * INLINE

[

Location,SubLocation

NCR,Del

];

data:

LOAD * INLINE [

    Product, Location,Sales

    A, NCR,100

    A, Del,150

    A, NCR,200

    B, SN,200

];

As location also include sub-location the total sales of NCR location should be 450.

So, when a user click on NCR value sales should be shown as 450. If user click on Del the sales should be 150.

In the UI i want to put Location and Sub-Location in each listbox. so location should have location values and sub-location should have only sub-location values in it.

Please help.

8 Replies
Anonymous
Not applicable

Hi Suraj,

  You may need the look table in the attached mapping table format. Find the attachment and let me know if still facing any issues.

-Jai

PrashantSangle

Load same table twice with alising

like below,


Final:

Load Location as finalLocation

from Test;

concatenate

Load SubLocation as finalLocation

from Test;

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
surajap123
Creator III
Creator III
Author

Thanks for your reply.

The location values should not be in Sub-location and vice versa. The ones highlighted below should not be in present in their respective fields.

Capture1.JPG

Expected output-->

Capture.JPG

Please help.

antoniotiman
Master III
Master III

Where "user click on Del", in Location or SubLocation Listbox ?

surajap123
Creator III
Creator III
Author

Hi Prashant,

I didn't get how i can solve by concatenation. There is no SubLocation field in my main table and i want data to be splitted, so that sub-location data is not in location field and location data is not in sub-location field. However the Location with sub-location should show complete sales(ie. sales of both location and its sub-location.)

surajap123
Creator III
Creator III
Author

Sub-Location.

Please see the lookup table.

PrashantSangle

Sorry my bad.

I interpret incorrectly.

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
el_aprendiz111
Specialist
Specialist

Hi,

del.png