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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Ignoring the chart dimension only in an expression

Hello,

I have a bar-chart in which I would like to calculate the % of users interacting with a number of services.

To keep it simple, I have 2 tables; one with the interaction data (Table A) & one with the user data (IDs basically) (Table B)

As my dimension I have the follwoing:

service name (coming from Table A)

As my metric, I have the following:

=count(DISTINCT InteractionData.UserID) / count(DISTINCT UserID)

(where the first count comes from table A & the second count comes from table B)

The problem is that the % of interactions per service always returns 100% as the dimension limits the UserID data to only those that have actually interacted with the service.

What I want to do is ignoring the dimension in my graph to have in the second count the total number of users.

However, dimensions other than the servicename should remain to be taken into account (like date, country, ...)

I tried working with {$}, {1}, {<[servicename]=}, .... not of these things worked...

Anyone has any idea?

Kind regards,

Christophe

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Perhaps this?

=count(DISTINCT InteractionData.UserID) / count(TOTAL DISTINCT UserID)


HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Perhaps this?

=count(DISTINCT InteractionData.UserID) / count(TOTAL DISTINCT UserID)


HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

in-credible ! That's it indeed ! Thanks a lot Jonathan !