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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Array search and compare

Hello,

first sorry for my bad english, hope you understand me.

i have a table:

UserNameHList1HList2
domain\username1OK
domain\adminOKOK
domain\username2
OK

_

target:

Only the user with "OK" see the result.

If the Login Username equal Username in the table and Hlist value = OK, then show the result

Formel:

if ( Username = OSUSER()) and Hlist1 = 'OK', sum (XX))

what ist wrong?

thanks

2 Replies
MayilVahanan

HI

Try like this

if ( Username = OSUSER() and Hlist1 = 'OK', sum (XX),'')

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

hello

thanks, but did not work

not work:

= if ( table.UserName = OSUSER(), sum (XXX),'')

work fine:

= if ( 'domain\username1' = OSUSER(), sum (XXX),'')

what is wrong?