Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
jsnova
Partner - Contributor II
Partner - Contributor II

calculation issue

I have the following results  (pivot table)
                              State A                         State B
Company A          avg(DurationDays)
         

--
                              State A                         State B
Company A               5                                   4
Compnay B               3                                  12


Now they want to get  a horizontal summary may be in seperate table

They Want Company A 9 days
                    Company B 15 days

tried things like aggr(avg(DurationDays),StateDescription) with the dimension company, but then i get null values

how to fix this ?

1 Solution

Accepted Solutions
sunny_talwar

Use Company as dimension

Expression

Sum(Aggr(Avg(DurationDays), Company, State))

View solution in original post

4 Replies
Gysbert_Wassenaar

What do you want to do? Sum the averages or average the averages or something else?

If you want the sum of averages try something like this: Sum(aggr(avg(DurationDays),CompanyNameDimensionHere,StateDescription))


talk is cheap, supply exceeds demand
sushil353
Master II
Master II

Hi,

If you are using a straight table then try :

sum(aggr(avg(DurationDays),Company))

Not applicable

Can you plz elaborate little more

sunny_talwar

Use Company as dimension

Expression

Sum(Aggr(Avg(DurationDays), Company, State))