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

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

Associated OSUSER

Record
UserTeamActive Directory
1PersonATeam1Domain\PersonA
2PersonBTeam1Domain\PersonB
3PresonCTeam2Domain\PersonC

Hello All,

I have the above data set,

I am using the following set : only({$<[Active Directory]= {'$(=OSUSER())'}>}Record) which is returning only the Records associated with the user logged in.

Can anyone help with the set analysis to return the Records relating to the TEAM of the user that is logged in?

Example:

If I log in as 'Domain\PersonA' I should be able to see Records 1 & 2 as they are within my team,

Any help would be much appreciated.

Thanks

Jeremy



1 Solution

Accepted Solutions
Not applicable
Author

Hi Jeremy,

You can achieve this by using the P() function like this:

For example if you want to display in a text box the related records to the team:

=Concat({$<Team = P({<[Active Directory]= {'$(=OSUSER())'}>} Team)>} Record, ',')

Or if you are using it as a dimension to display for example the related users, the calculated dimension would be like this:

=Aggr(Only({$<Team = P({<[Active Directory]= {'$(=OSUSER())'}>} Team)>} Record), Record)

So it may need a bit of manipulation depending on how you'll be using it.

Hope this will help you in your case.

View solution in original post

1 Reply
Not applicable
Author

Hi Jeremy,

You can achieve this by using the P() function like this:

For example if you want to display in a text box the related records to the team:

=Concat({$<Team = P({<[Active Directory]= {'$(=OSUSER())'}>} Team)>} Record, ',')

Or if you are using it as a dimension to display for example the related users, the calculated dimension would be like this:

=Aggr(Only({$<Team = P({<[Active Directory]= {'$(=OSUSER())'}>} Team)>} Record), Record)

So it may need a bit of manipulation depending on how you'll be using it.

Hope this will help you in your case.