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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out 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

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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
MVP
MVP

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;