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: 
azmeerrehan
Partner - Creator
Partner - Creator

Dim Issue

Attached please find the sample Excel and QVW fle. I have a DIm with values  A,B,C,D AND E.  I want to create a Flag  with the three values:

'Only 'E''

'No 'E''

'All Values'

I am able to get 'Only E' and 'No E' but cant get the one with All Values.

How can I accomplish that flag with 3 values

1 Solution

Accepted Solutions
sunny_talwar

Try this approach

Table:

LOAD Dim

FROM

[Sample.xlsx]

(ooxml, embedded labels, table is Sheet1);

LinkTable:

LOAD Distinct Dim,

'No E' as Dim_Flag

Resident Table

Where Dim <> 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'Only E' as Dim_Flag

Resident Table

Where Dim = 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'All Values' as Dim_Flag

Resident Table;

View solution in original post

1 Reply
sunny_talwar

Try this approach

Table:

LOAD Dim

FROM

[Sample.xlsx]

(ooxml, embedded labels, table is Sheet1);

LinkTable:

LOAD Distinct Dim,

'No E' as Dim_Flag

Resident Table

Where Dim <> 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'Only E' as Dim_Flag

Resident Table

Where Dim = 'E';

Concatenate(LinkTable)

LOAD Distinct Dim,

'All Values' as Dim_Flag

Resident Table;