10 Replies Latest reply: Feb 21, 2017 2:31 AM by vivek pv

# Percentage

Hi all,

I want to do calucalte the cumulative % .

how can I achieve this?

I have a combo chart

dimension: sample Code

Exp:

1) count(product)    for bar chart

how can I write for  cumulative %  expression?

• ###### Re: Percentage

In presentation tab there is option called

full Accumulation ,pls try with that

• ###### Re: Percentage

Hi.. Soni,

As per your requirement, you can use this code :

=COUNT(DISTINCT Customer)/COUNT(TOTAL DISTINCT Customer)

Regard's

Sarvesh Srivastava

• ###### Re: Percentage

Hi Sony,

I think you used qliksense. Hence, It is quit difficult to write Cumulative expression.

You can used below expression for cumulative in sense.

In my app I wanted Gross Sales Cumulative. I've used Rangesum function.

Rangesum(Above(Sum(GrossSales),0,RowNo()))/Sum(TOTAL GrossSales)

OR for your expression used below defined expression.

Rangesum(Above(Count(Product),0,RowNo()))/Count(TOTAL Product)

May be this will helps you.

Thanks,

Ishan

• ###### Re: Percentage

Hi Sony,

I've used above defined expression to find Cumulative percentage. If you wants only Cumulative of product count then used only first half of the expression.

Ex.

Rangesum(Above(Count(Product),0,RowNo()))

Thanks,

Ishan

• ###### Re: Percentage

thanks all  but none of the expression is not working:(

cumulative% is showing more than 100%

like 255%,154%...

• ###### Re: Percentage

Hi Sony,

Can you provide source file of your data. So I'll try at my end.

• ###### Re: Percentage

For your information you have to also change the number format of the expression. you have to change the number format 'AUTO' to "Number' and in number format select percentage.

Steps:

1. Apply Expression: Rangesum(Above(Count(Product),0,RowNo()))/Count(TOTAL Product)
2. Change Number Format : Number -> Percentage->12%

Ishan.

• ###### Re: Percentage

In Qliksense we don't have Accumulate.

if you want in QlikSense

you write like

num((Rangesum(Above(Count(Product),0,RowNo()))/Count(TOTAL Product)),'#,##0.00%')

• ###### Re: Percentage

Hi Sony,

Regards,

Murali Mohan .T

• ###### Re: Percentage

Hi Murli,

I think you attached qlikview app functionality in screenshot but Sony wants in Qliksense.

Ishan