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

Aggregate Dimensions

Hi Everybody,

I want to aggregate the values of a dimension in the following way:

The dimension "item group" has 4 digits with a revenue

- BYDF ==> 100.000€

- BYRK ==> 200.000€

- BYSW ==> 250.000€

What I want to do is aggregate the revenues of these three values to a single-digit item group "B", which sums up the values to 550.000€. "B" should be displayed within the other 4-digit item groups as a dimension.

Thanks for any ideas.

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

I am not able to solve this from chart object level. So, I have made it through the script. Pelase see the attachment.

View solution in original post

6 Replies
sivarajs
Specialist II
Specialist II

Add a calculated dimension as if(Group='BYDF','B',if(Group='BYRK','B',if(Group='BYSW','B'))) or

if(WildMatch(Group,'B*'),'B')

Expression as sum(amount)

Not applicable
Author

Hey,

thanks for your quick answer. I already thought about the cascadef if-statement, but it's not the right way. The result should look like this:

- B ==> 550.000€ (the calculated sum of the 3 revenues below)

- BYDF ==> 100.000€

- BYRK ==> 200.000€

- BYSW ==> 250.000€

Best regards

Not applicable
Author

I think, you can solve this by using WildMatch function. See the attachment.

Not applicable
Author

We are on the right way 🙂 The aggregation works, but I need to display the other 3 four-digit item groups.

Not applicable
Author

Hi,

I am not able to solve this from chart object level. So, I have made it through the script. Pelase see the attachment.

Not applicable
Author

Perfect. Thank you very much!!!