Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
andrea90casa
Creator
Creator

aggr Set Analysis

I have this situation:

NameYearCategoryValue
Alfa2015Cat_01

1000

Alfa2014Cat_01800
Alfa2013Cat_01900
Gamma2015Cat_021500
Gamma2014Cat_022000
Beta2015

Cat_01

1400
Epsilon2014Cat_01800

And i would like to create a chart with Year as dimension and then the total amount of value by category. For example if i select Alfa i would like to obtain (in this case the category will be Cat_01):

2015) 2400

2014) 1600

2013) 900

I tried to write this formula:

Aggr(nodistinct sum({<Name>} Value),Category)

But if i do this it gives to me the entire value wihtout considering Year fields.

How can i solve this problem?

Andrea

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try using Year as dimension and as expression

=Sum({<Category = p(), Name= >} Value)

View solution in original post

2 Replies
swuehl
MVP
MVP

Try using Year as dimension and as expression

=Sum({<Category = p(), Name= >} Value)

andrea90casa
Creator
Creator
Author

Thank you Stefan,

I will go to see what is that p() and how it works

Andrea