Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

Set Analysis Using Available Values

Hi everybody,

Is there a way to use set analysis (or something) on the available values in a field, not just what the user has selected? I'm trying to make a scorecard where the user will select an employee and see their productivity and compare that to everyone who has worked at that stations for the given time frame. For example, I want to select Employee1 and see how many hours that employee has logged (76). In this case, Employee1 has worked only on Station 2. I need a way to then see the hours for only Station 2 with the user necessarily selecting it.

Is something like this even possible?

Thanks,

Justin

EmployeeStationDateHours
Employee1207/20/20154
Employee1207/21/20154
Employee1207/22/20158
Employee1207/23/20154
Employee1207/24/20154
Employee1207/25/20158
Employee1207/26/20155
Employee2107/20/20156
Employee2107/21/20155
Employee2107/22/20154
Employee3207/23/20158
Employee3207/24/20157
Employee3207/25/20155
Employee4307/26/20155
Employee2107/20/20156
Employee3107/21/20157
Employee3207/22/20157
Employee3207/23/20157
Employee3307/24/20158
Employee3307/25/20158
Employee3207/26/20155
1 Solution

Accepted Solutions
krishna_2644
Valued Contributor III

Re: Set Analysis Using Available Values

See attached.

let me know if thats the expected output.

8 Replies

Re: Set Analysis Using Available Values

May be... Haven't tried...

=SUM({1<Station = P(Station)>}Hours)

Re: Set Analysis Using Available Values

or

=SUM({<Employee = ,  Station = P(Station)>}Hours)

krishna_2644
Valued Contributor III

Re: Set Analysis Using Available Values

See attached.

Not applicable

Re: Set Analysis Using Available Values

Thanks for the reply, Manish.

What function does the P() serve? I've never used it before.

Highlighted
Not applicable

Re: Set Analysis Using Available Values

Thanks for the reply, krishna.

What I'm looking to do is make it so when the use selects Employee1, one object will show the 37 hours worked for that employee. Employee1 also only ever worked at station 2. I would like the other object to show the total hours for station 2, which would be 76 hours. If the use then selected Employee2, one object would show that Employee2 worked 21 hours. The other object would show 28 hours with the user having to select Station 1.

krishna_2644
Valued Contributor III

Re: Set Analysis Using Available Values

See attached.

let me know if thats the expected output.

Not applicable

Re: Set Analysis Using Available Values

Yes! Station={$(=only(Station))} was the piece that I couldn't figure out. Thanks!

krishna_2644
Valued Contributor III

Re: Set Analysis Using Available Values

Awesome. Happy Qliking.

Community Browser