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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
fe-c
Contributor III
Contributor III

value aggregation dependence on drill down dimension

Hello everybody, 

is it possible to change the value aggregation (in a bar chart) in dependence of drill-down "status"?

For example: 

1st level of drill-down = year --> should show the average sales per month

sum(sales)/12

2nd level of drill-down = month --> I want the sum of sales per month

sum(sales)

 Is something like this possible in general?

Thanks in advance.

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

sum(sales) / count(distinct month)

 what about above?

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

View solution in original post

3 Replies
fe-c
Contributor III
Contributor III
Author

Ok,  I think a have found a solution by myself. 

 

sum(sales)/((max(month(date_sales)))/(min(month(date_sales))))

 

Maybe this is not the smartest solution, but seems working like I want. Sure, it's not a bulletproof solution (e.g. years with no sales in january), but this is no problem in my dataset.

vinieme12
Champion III
Champion III

sum(sales) / count(distinct month)

 what about above?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
fe-c
Contributor III
Contributor III
Author

Thanks Vinieme12, 

looks way smarter.