Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% CALCULATION

I want to calculate the % so that 129 should be divide by 154 & 17/154 same for the others.

Each value should be divide by total of it value 

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Shwetha,

In expression tab of chart properties add:

=sum(sales)/sum(Total Sales)

In Number tab:

Tick the checkbox show in percent option.

you will have % calculation and display percent in the chart

Regards

Neetha

View solution in original post

6 Replies
its_anandrjs
Champion III
Champion III

Hi,

Did you try TOTAL key word

Ex:-

Sum( Metrics ) / Sum( TOTAL Metrics )

Regards

Anand

anbu1984
Master III
Master III

If your expression for K is Sum(Sales), then to calculate percentage use Sum(Sales) / Sum(Total Sales)

Anonymous
Not applicable
Author

Hi Shwetha,

In expression tab of chart properties add:

=sum(sales)/sum(Total Sales)

In Number tab:

Tick the checkbox show in percent option.

you will have % calculation and display percent in the chart

Regards

Neetha

Not applicable
Author

Hi,

Sum(K)/Sum( Total <Dimension1><Dimension2> K).

Hope this will help

Regards,

Joshmi

Not applicable
Author

Hi.

It works only with <Dimension2>.

Sum(K)/Sum(Total <Dimension2> K)

is right expression.

Not applicable
Author

Thats right Formula