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: 
ashmitp869
Creator II
Creator II

Please help with the script

Hi there,

I do have the below script

test:
LOAD DISTINCT [Ward/Location],0 as securorgatt resident AH_MDS;
CONCATENATE (test)
LOAD DISTINCT SecuredOrg AS [Ward/Location],
1 as securorgatt
FROM
[$(vL.QVDPathAH)SensitiveClinicSectionAccessMapping.xlsx]
(ooxml, embedded labels, table is Sheet1);

When I have two values i.e 0 and 1 , I only need to pick the row with 1. How do I do in qlikview script.

ashmitp869_0-1655274410235.png

 

Labels (1)
1 Solution

Accepted Solutions
MarcoWedel

maybe like this:

 

test:
LOAD DISTINCT
            SecuredOrg AS [Ward/Location],

             1 as securorgatt
FROM [$(vL.QVDPathAH)SensitiveClinicSectionAccessMapping.xlsx] (ooxml, embedded labels, table is Sheet1);

 

CONCATENATE (test)
LOAD [Ward/Location],
            0 as securorgatt
RESIDENT AH_MDS
WHERE not Exists([Ward/Location]);

View solution in original post

4 Replies
Bill_Britt
Former Employee
Former Employee

Hi,

Would you not use a Where clause to do this?

 

Bill

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
MarcoWedel

maybe like this:

 

test:
LOAD DISTINCT
            SecuredOrg AS [Ward/Location],

             1 as securorgatt
FROM [$(vL.QVDPathAH)SensitiveClinicSectionAccessMapping.xlsx] (ooxml, embedded labels, table is Sheet1);

 

CONCATENATE (test)
LOAD [Ward/Location],
            0 as securorgatt
RESIDENT AH_MDS
WHERE not Exists([Ward/Location]);

ashmitp869
Creator II
Creator II
Author

Hi Marco,

why I am only getting the values as 1 , the 0 are not showing correctly. I want both of them .

 

ashmitp869_0-1655334871519.png

 

ashmitp869
Creator II
Creator II
Author

even in the Data model table , I only have the ones with value 1 but not showing the data with 0.