Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Query in Mapping

Hi All,

Here I have enclosed my Inline table.First column will be the Region.Second Column will be the short form City.And the third column will be the Coulumn should be visible for End user.I want to do this using in 'MAPPING' Is it possible.If it is how.Please let me know the same

Map:
LOAD * INLINE [
Region, City,NewCity
South, Blr,BANGALORE
North, Del,DELHI
East, Raj,RAJSTHAN
West, Cal,CALCUTTA
];

Note: I shoud not use use 'IF'

Thanks & Regards

Jai

1 Reply
sparur
Specialist II
Specialist II

hello Jai.

You can create a table City:

CityTable:

LOAD * INLINE [
City,CityFull
Blr,BANGALORE
Del,DELHI
Raj,RAJSTHAN
Cal,CALCUTTA
];

and create a map table by region:

MAP_Region_City:

MAPPING LOAD * INLINE [
Region, City
South, Blr
North, Del
East, Raj
West, Cal
];

and then use it map in your transactional table:

FactTable:

LOAD ...

Region,

ApplyMap('MAP_Region_City', Region, 'N/A') as City

FROM ....

And in the layout you can use a listbox for field CityFull.