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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Section Access

Section Access;

Load [Access]

      ,[NTName]

      ,[UserName]

      ,[Password];

      SQL SELECT *

  FROM[Access];@

  STAR is *;

 

LOAD  UPPER([NTName]) as NTName

      ,[CostCenter]as COSTCENTER;

      SQL SELECT *

  FROM [CostCenter];

I must filter data based on costcenter

Will the above code work?

Initial Data reduction is turned on.

Strict exclusion turned on

Security - reduction - turned on.

1 Solution

Accepted Solutions
chiru_thota
Specialist
Specialist

It should work.

Only error I can see is you should end the code with

SECTION APPLICATION;

Thanks,

Chiru

*******************************************************************

Section Access;

Load [Access]

      ,[NTName]

      ,[UserName]

      ,[Password];

      SQL SELECT *

  FROM[Access];@

  STAR is *;

SECTION APPLICATION;

LOAD  UPPER([NTName]) as NTName

      ,[CostCenter]as COSTCENTER;

      SQL SELECT *

  FROM [CostCenter];

******************************************************************

View solution in original post

3 Replies
chiru_thota
Specialist
Specialist

It should work.

Only error I can see is you should end the code with

SECTION APPLICATION;

Thanks,

Chiru

*******************************************************************

Section Access;

Load [Access]

      ,[NTName]

      ,[UserName]

      ,[Password];

      SQL SELECT *

  FROM[Access];@

  STAR is *;

SECTION APPLICATION;

LOAD  UPPER([NTName]) as NTName

      ,[CostCenter]as COSTCENTER;

      SQL SELECT *

  FROM [CostCenter];

******************************************************************

Not applicable
Author

Thanks will try now..

hic
Former Employee
Former Employee

It is USERID, not UserName. And you need to use upper case. I.e.

Section Access;

Load Upper(Access) as ACCESS

      ,Upper(NTName) as NTNAME

      ,Upper(UserName) as USERID

      ,Upper(Password) as PASSWORD;

      SQL SELECT * FROM [Access];

  STAR is *;

LOAD  UPPER([NTName]) as NTNAME

      ,UPPER(CostCenter) as COSTCENTER;

      SQL SELECT * FROM [CostCenter];

Further, the "Star Is *" doesn't always solve the problem. It will only be matched against other values in this table - not the values of other tables.

HIC