Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Product of all Percentage of all rows in a table-diagram

Hi,

I have a nice problem:

There is a table (diagram) containing a number of rows, a dimension and a percentage:

AccountPercentage
A50%
B30%
C60%

What I want to see, is the product of all percentages (50% x 30% x 60% -> 0.5 x 0.3 x 0.6 -> 0.09 -> 9%) as a column:

AccountPercentage
A9%
B9%
C9%

How can I achieve this?

Thanks a lot in advance,

Martin

11 Replies
swuehl
MVP
MVP

You could try something like

=exp(sum(total log(Percentage)))

as expression in your chart.

And maybe you want to vote for http://community.qlik.com/ideas/1105

Regards,

Stefan

Not applicable
Author

Hi Stefan,

thanks, but this only gives me 100% for all rows...

And i voted.

Martin

swuehl
MVP
MVP

See attached for a sample.

How do you calculate your percentage?

Stefan

Not applicable
Author

If I would get the product of all percentages as a total row it would also be ok:

AccountPercentage
A

50%

B30%
C60%
Total9%

Thanks,

Martin

Not applicable
Author

Hi,

my percentage is something like "sum(CounterM)  / sum(VK_MENGE)"

Thanks,

Martin

swuehl
MVP
MVP

Then try something like

exp(sum(total aggr(log(sum(CounterM) / sum(VK_MENGE)),Account)))

Not applicable
Author

Hmm... like that I get only 0% everywhere... and when I use another expression with "sum(CounterM) / sum(VK_MENGE)" as xxx and use the result of this in the main formula "exp(sum(total aggr(log(xxx),Account)))", I get a 100% everywhere... can you see my mistake?

swuehl
MVP
MVP

Some more examples.

Stefan

swuehl
MVP
MVP

Could you upload a simplified version of your app here in the forum? Or just some LOAD INLINE tables as text?