Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

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?

1 Solution

Accepted Solutions
ishanbhatt
Creator II
Creator II

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.

View solution in original post

10 Replies
Not applicable

In presentation tab there is option called

full Accumulation ,pls try with that

sarvesh
Creator III
Creator III

Hi.. Soni,

As per your requirement, you can use this code :

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

Regard's

Sarvesh Srivastava

ishanbhatt
Creator II
Creator II

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

ishanbhatt
Creator II
Creator II

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

soniasweety
Master
Master
Author

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

cumulative% is showing more than 100%

like 255%,154%...

ishanbhatt
Creator II
Creator II

Hi Sony,

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

ishanbhatt
Creator II
Creator II

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.

Anonymous
Not applicable

Hi Sony,

Please find the attachment file.

Regards,

Murali Mohan .T

ishanbhatt
Creator II
Creator II

Hi Murli,

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

Ishan