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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how do i seperate M and F on field Gender to different fields

Hello Peeps,

I want to seperate M and F to different fields, so i can load to different listbox.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

In script try like this

Data:

LOAD

*,

If(DimensionName = 'M', DimensionName ) AS DimM,

If(DimensionName = 'F', DimensionName ) AS DimF

FROM DataSource;

Note : Replace DimensionName with your actual field name.

Hope this helps you.

Regards,

jagan.

View solution in original post

1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi,

In script try like this

Data:

LOAD

*,

If(DimensionName = 'M', DimensionName ) AS DimM,

If(DimensionName = 'F', DimensionName ) AS DimF

FROM DataSource;

Note : Replace DimensionName with your actual field name.

Hope this helps you.

Regards,

jagan.