Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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?