Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am using a QlikView Entity as a recipients list for an Nprinting report.
My recipients list in my chart has more people than I need in it. It is showing ALL Users. I want to restrict it to anyone that exists in another field in my QVW. How would I get my chart to show only the names of people that are currently listed in a field called RESP_PROJ_MANAGER?
There´s more than a way of doing that, Cassandra.
Please find attached one possible solution.
I´ve created a Flag inside your DM_STAT_RESOURCE that means
Would you mind sharing a sample of your data or qvw?
Preparing examples for Upload - Reduction and Data Scrambling
See sample.
Good night, Cassandra.
How are that tables are supposed to be relationated?
Check Request_id field whether it is same ROLE_ID if yes the while loading DM_STAT_REQ data say REQUEST_ID as ROLE_ID qlikview automatically join with DM_DYN_RESOURCE table.
HTH
Vikas
Script:
table 1:
LOAD
USER_ID
,
ROLE
,
ROLE_ID
FROM
C:\Users\v_0095\Desktop\recipients.xlsx
(ooxml
, embedded
labels
, table
is
DM_DYN_RESOURCE);
table 2:
LOAD
USER_ID
,
EMAIL_ADDRESS
,
FULL_NAME
,
FULL_NAME
as
RESP_PROJ_MANAGER
FROM
C:\Users\v_0095\Desktop\recipients.xlsx
(ooxml
, embedded
labels
, table
is
DM_STAT_RESOURCE);
Left
Join
LOAD
REQUEST_ID
,
RESP_PROJ_MANAGER
,
'Y' as
flag
FROM
C:\Users\v_0095\Desktop\recipients.xlsx
(ooxml
, embedded
labels
, table
is
DM_STAT_REQ);
Result is one name you found with flag Y
Regards,
Zain.
Table1:
LOAD
USER_ID
,
ROLE
,
ROLE_ID
FROM
C:\Users\v_0095\Desktop\recipients.xlsx
(ooxml
, embedded
labels
, table
is
DM_DYN_RESOURCE);
Table2:
LOAD
USER_ID
,
EMAIL_ADDRESS
,
FULL_NAME
,
FULL_NAME
as
RESP_PROJ_MANAGER
FROM
C:\Users\v_0095\Desktop\recipients.xlsx
(ooxml
, embedded
labels
, table
is
DM_STAT_RESOURCE);
Left
Join
LOAD
REQUEST_ID
,
RESP_PROJ_MANAGER
,
'Y' as
flag
FROM
C:\Users\v_0095\Desktop\recipients.xlsx
(ooxml
, embedded
labels
, table
is
DM_STAT_REQ);
Only one record you found with flag 'Y' which is listed in RESP_PROJ_MANAGER table.
Regards,
Zain.
I was loading RESP_PROJ_MANAGER as FULL_NAME
No. Request ID and Role ID are not the same.
Cassandra, checking your data, there is no person who is at the same time in the two tables