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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Honki
Contributor
Contributor

take the max of the week

Hello!

this function works.

sum(if(Aggr(Count(C),P)>1  ,1))

But, I want to calculate this below for week= max(week). I did this:

 

sum(if(Aggr(Count(C),P)>1  and week=max(week) ,1))  but it doesn't work.

 

I need help, please, please!!!!!!!!!!

Labels (5)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below

=sum(if(Aggr(Count({<week={"$(=max(week))"}>}C),P)>1 ,1))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

As below

=sum(if(Aggr(Count({<week={"$(=max(week))"}>}C),P)>1 ,1))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.