Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
edugallowk
Contributor III
Contributor III

Count IF Division and Aggregate

Hello my friends!

I'm having difficulty constructing an expression, can you help me build it, both in the convetional method and in the set analysis?

I mounted the dimension this way and it worked:

DIM:

 

aggr(if(round(count(if(Events=1 or Events=11, Events))
/ 
count(distinct Date)) >=1,'Hiperconsultador',Null()), username)

 

I need to count the total number of users where the total of events dividing by total dates is equal to or greater than 1.

I thank the attention,

 

🙂

Labels (2)
1 Solution

Accepted Solutions
Gabriel_Santos
Contributor
Contributor

num(
count(distinct if(aggr(
	(count(if([Events]=1 or [Events]=11, [Cod_Events]))
    /
    count(distinct [Date])) > 1
, username), username))
,'###.###')

View solution in original post

1 Reply
Gabriel_Santos
Contributor
Contributor

num(
count(distinct if(aggr(
	(count(if([Events]=1 or [Events]=11, [Cod_Events]))
    /
    count(distinct [Date])) > 1
, username), username))
,'###.###')