Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Filter unique values

Data

  

UserNameAccess ID
10000152
223232353
975003470353
3439kljl52
50000391
204940077
903llddl52
789oeoeoel81
909999960
3022929952

-----------------------------------------------------------------------------------------------------------------

I want to filter/count all the username having Access id only 52

Next I want it for 53/91.... as on individually

I tried using the formula like below

count({$<Access ID ={"52"}>} username)

I get the data like this

Result received.png

The numbers that I received were not correct because when I did export to excel and cross verified the numbers were different

can somebody helpme as to how to filter data only for the access id 52.

Expected result are

This is just for example

Access IDTotal Count

01

06

11

12

34

52

53

10

5

4

20

25

15

50

Kindly let me know if you need any additional details


Thanks for your help in advance

Vinay

9 Replies
Not applicable
Author

Hello Experts,

Does No body knows the answer for my query? please advise .

Atleast give me some thoughts if you would have not come across these type of situations.

Thank You,

Vinay

oknotsen
Master III
Master III

It helps if you post your QlikView question in the QlikView area of the community .

I am now moving your topic to "New to QlikView" where it might get the attention it needs.

May you live in interesting times!
PrashantSangle

Hi,

try like

count({<[Access ID]={"52"}>} distinct username)


Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

or

take straight table

Access ID as dimension

count(Distinct UserName) as Expression

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
qlikviewwizard
Master II
Master II

load * Inline

[

UserName,Access ID

100001,52

2232323,53

9750034703,53

3439kljl,52

500003,91

2049400,77

903llddl,52

789oeoeoel,81

9099999,60

30229299,52];

Capture.PNG

Anonymous
Not applicable
Author

your expression should be count ( Distinct UserName)

Not applicable
Author

Hi Max Dreamer,

Thanks for your help it worked partially

Here is another situation where I should not consider the UserName if its already appeared in different Access ID.

Example: There are list of UserName are present in ConID 51 and 65  so, when i use the formula ""count({<[Access ID]={"51"}>} distinct username)"" it filters/picks only for ContID 51 which is great but when i filter for "ContID" 65 it should NOT display the users which are already presented in 51. Therefore, in this example it should be 0.

I tried using <Not Equals> formula to fix this ""count({<[Access ID]={"51 <> 65"}>} distinct username)""/""count({<[Access ID]={"51 -= 65"}>} distinct username)"" the formula works fine no error

but the results are not displayed>

ExampleQVIMG.jpg

Sorry i was not able to attach the excel sheet so please find the raw data for this example

  

UserNameConID
123433352
ASDLJLH2352
949400052
8567888L52
RM222eee52
z334555452
8484848p52
8575757552
120003852
99903352
444999951
5555599951
222222999951
3333349951
555559851
222220951
4566666951
2222229045051
484848455
67676755
8575758900055
666668955
3333000055
66660055
6660095655
33334855
22222455
494449991
1111009091
494944991
33388855891
9595944491
7757599991
2020299991
49494300053
5676700053
2928272753
474859953
9992853
77748053
183745653
934787453
29585753
29857353
474747i253
499388827753
123433353
ASDLJLH2353
949400053
8567888L53
RM222eee53
z334555491
8484848p91
8575757591
120003891
99903391
444999965
5555599965
222222999965
3333349965
555559865

I did a reasearch to find solution for this issue but not found anything exactly

Kindly let me know if you need any additional details for this

Not applicable
Author

This is little urgent can somebody provide me an ideas please

Moderators could you please Approve my previous replay at your earliest.

Thank You,

Vinay

Not applicable
Author

This was almost near to my query.

Thanks a lot and appreciate for your help.This answer works when you use set analysis