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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
tinkerz1
Creator II
Creator II

How many dependants does 'AB1' have

Hi,

I will try an explain what I am trying to do:

Field A    Field B

AB1           DE

AB2           DE

AB3           DE

AB4           DE

AB3           FG

AB1,AB2,AB4,AB5 has 1 dependant

Where as

AB3 has 2

How can I write an expression to find this out?

Thanks

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

[Field A]

Expression

Count(Distinct [Field B])

View solution in original post

4 Replies
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

[Field A]

Expression

Count(Distinct [Field B])

tinkerz1
Creator II
Creator II
Author

Sorry,

That does not produce any data, it should produce

AB1   1

AB2   1

AB3   2

Many Thanks

robert_mika
Master III
Master III

Manish is correct:

09-Jul-15 3-58-43 PM.jpg

sunny_talwar

Seems to be working as Manish prescribed:

Capture.PNG