Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
If I have a dimension called Names with values Joe, Bob, James, Elly, how can I create a new dimension with only Bob and Elly?
Thank you.
or You can do that in UI as well with an expression while creating a dimension. Click on "fx" and add below expression.
=if(wildmatch(Names,'Bob','Elly'),Names,null())
In the script you can do this:
LOAD Names,
If(Match(Names, 'Bob', 'Elly'), Names) as NewNames
Otherfields
FROM xyz;
or You can do that in UI as well with an expression while creating a dimension. Click on "fx" and add below expression.
=if(wildmatch(Names,'Bob','Elly'),Names,null())
Load * Inline
[NameId, Name
1,Bob
2,Elly];
Hi,
Try like this
LOAD
*,
If(MixMatch(Names , 'Bob', 'Elly'), Names) AS NewDimensionName
FROM DataSource;
Hope this helps you.
Regards,
Jagan.
Thank you. I was looking for a way to do this from UI. I think the nice thing about Qlik Sense is this feature.
Hi Allen,
Always do this type of logic in Script, it improves the performance. Calculated dimensions is not suggested to use because of performance issues.
Regards,
Jagan.