Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qlik4asif
Creator III
Creator III

how to split the values in a columns and map with the existing field in a datamodel

Hello Experts,

I am facing a problem to integrate a table in existing data model.

I have a fact table in datamodel having one of field as Location which i am using as filter in Front End.

Eg:

Consider below is the table which i want to integrate in the existing Datamodel.

 

PIDCIDLocation Pprice
P1001C1001HYD|CHE|BNG100
P1002C1002HYD150
P1001C1003PUN|KER222
P1002C1002GOA300
P1004C1004MUM|RAJ90

 

In Data model , Location Field has values like...

Location
HYD
CHE
BNG
KER
PUN
GOA
MUM
RAJ

 

SO first record should get highlighted when location is selected as HYD or CHE or BNG in Front end.

similarly for other records.

 

Please help me on this.

 

Thanks in advance 🙂

 

 

 

 

Labels (3)
1 Reply
Vegar
MVP
MVP

Try this:

Load
PID,
CID,
Location as [GUI Location] ,
Pprice
From Table;

Locations:
Load distinct
Location as [GUI Location] ,
subfield(Location, '|') AS Location
From Table;