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: 
markgraham123
Specialist
Specialist

Unable to get total in chart table for one column

Hi,

I have 3 dimensions Name, Total and used.

In the chart table, im using an expression (Used/total)%

I can get the total as sum of rows for total and used.

But the same logic not working for the expression where i want to fetch the overall %.

Can someone look into the app atatched.

1 Solution

Accepted Solutions
sunny_talwar

Or may be this:

Capture.PNG

Where 74.52% = 459761/616973

Expression:

Sum(Aggr(Used, Name))/Sum(Aggr(Total, Name))

View solution in original post

9 Replies
sunny_talwar

Use the same logic for the third expression? If you need Avg then select Avg like this:

Capture.PNG

krishna_2644
Specialist III
Specialist III

Summing up all the %s seems to be a bad logic. but u can do something like avg,max min of the %s.

see attached.

Anonymous
Not applicable

the expression for Total should be :

sum(Total)

the expression for Used should be :

sum(Used)

then in the 3rd column put:

column(2)/column(1)

Then use expression totals for all 3 columns

sunny_talwar

Or may be this:

Capture.PNG

Where 74.52% = 459761/616973

Expression:

Sum(Aggr(Used, Name))/Sum(Aggr(Total, Name))

Anonymous
Not applicable


Sorry, forgot to attach the example

markgraham123
Specialist
Specialist
Author

Thanq Adrian.

markgraham123
Specialist
Specialist
Author

Thanq CHaitanya

markgraham123
Specialist
Specialist
Author

Thanq Sunny.

sunny_talwar

No problem, I am glad I was able to help.

Best,

Sunny