Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
seniorps
Not applicable

OSUser - Set Analysis

I'm trying to use Set Analysis to show sales for the user who is logged in, using the following code:

sum({$<PAIDREPUser="{=SubField(OSUser(),'UserId=',2)}">}Sales)

The SubField(OSUser(),'UserId=',2) returns the user correctly and the PAIDREPUser field also returns the right name in the right format. However, when I put them together in the Analysis set I can't seem to get any result.


Any ideas what I'm doing wrong?

3 Replies
chooco_co
Not applicable

Re: OSUser - Set Analysis

Hi Paul

Looks like your set analysis syntax is wrong

sum({$<PAIDREPUser={"=SubField(OSUser(),'UserId=',2)"}>}Sales)

your double quotes outside brackets.


Regards

Marco

maxgro
Not applicable

Re: OSUser - Set Analysis

sum({$<PAIDREPUser={"$(=SubField(OSUser(), 'UserId=2', 2))"}>} Sales)

sunny_talwar
Not applicable

Re: OSUser - Set Analysis

May be this:

Sum({$<PAIDREPUser = {"$(=SubField(OSUser(), 'UserId=', 2))"}>}Sales)