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: 
Not applicable

Aggr() Function

Hi Guys

Question

I have a Sheet in Qlik view qith a dropdown with Weeks. I need a expression that depending the Week selected in the dropdown I get the count of the days of the week. This should be grouped by Boss, Process and Week.

I tryied with this expression but I don't get any correct value.

Aggr (Count( {<Week={"&(=Week)"}>}Date) , Boss , Process , Week )

Any ideas?

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

Thanks for your help this worked for me!

Count(Distinct{<Week={"$(=Week)"}>}Date)

View solution in original post

3 Replies
swuehl
MVP
MVP

If you want to see your results grouped by Boss, Process, Week, create a straight table or pivot table chart with these dimensions. Then as expression maybe

=count({<Week = {'$(=max(Week)'}>} Date)


Hope this helps,

Stefan

Not applicable
Author

Thanks for your help this worked for me!

Count(Distinct{<Week={"$(=Week)"}>}Date)

Not applicable
Author

And this worked as well

Aggr(Count(DISTINCT{<Week={"$(=Week)"}>}Date),Boss,Process,Week)