Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ashraf_qlik
Partner - Contributor
Partner - Contributor

Grouping of states

Hi,

I have a column 'States' in data where states names are

Delhi , Haryana , UP , MP, Bihar, Rajasthan, Assam , Manipur, Tripura , AP, Tamilnadu, Goa.

My report required these states to be clubed and give a new name as per below,

Delhi , Haryana , UP  as NCR

Assam , Manipur,Tripura as NE 

Rest states as it is.

I want to do this while loading the script, please suggest

 

1 Reply
sunny_talwar

May be create a new field like this

LOAD States,
     If(Match(States, 'Delhi', 'Haryana', 'UP'), 'NCR'
     If(Match(States, 'Assam', 'Manipur', 'Tripura'), 'NE', States)) as GroupedStates
     ...
FROM ...;