Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% of participation from accumulated data

Hi!

I try to get a qlikview pivot table the % of participation from accumulated data. but I cannot get the expected results. Can someone help me? I appreciate very much your help.

I have the following data:

data01.png












I want to generate the following results.


For the following table, I selected Year=2015 and Month=5.

ExpectedResult01.png

If I select Year = 2015 and Month = 6, the expected result table must be:

ExpectedResult02.png

I know the formulas for column Payed and for the first %. But, for the columns Accumulation and the associated %, I have tried with several formulas and I cannot get the expected result.

Thanks a lot for your help!

Cordially,

--- maoh

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

Check the attachment.

View solution in original post

8 Replies
Not applicable
Author

Hi,

I hope it will help u to complete u r task

In the expressions :

for getting the Accumulation: rangesum(above(total sum(paid), 0, rowno(Total)))

                     associated %:(rangesum(above(total sum(paid), 0, rowno(Total)))/sum(TOTAL paid))*100

Thanks and Regards,

Balaji.k

tresesco
MVP
MVP

Could you share your sample qvw?

Not applicable
Author

Below expressions should give you an idea. For the given requirement these are working. But work on to improve them to generalize. For example, if multiple months are selected, these expressions may not work. Then you need to find out the maximum month from the selected. Do that for yourself. And these will work only when one Year and one Month are selected. Change the expressions as per your requirement. Let us know if you need any help for that.

Accumulated Payed - Sum({<Month={'<=$(#=GetFieldSelections(Month))'}>}Payed)

Accumulated Payed % - Sum({<Month={'<=$(#=GetFieldSelections(Month))'}>} Payed)/Sum({<Month={'<=$(#=GetFieldSelections(Month))'}>} TOTAL<Channel> Payed)



Regards,

KKR

Not applicable
Author

Of course.

Not applicable
Author

Unfortunately, it did not work the suggested solution.

I attach the qlikview application where your suggestion is used.

Thanks a lot for your help,

--- maoh

Not applicable
Author

Thanks for your answer. But it did not work because the expected result is not obtained.

I attach two qlikview application where the suggestions of tresesco and Kranthikumar M are used.

Anonymous
Not applicable
Author

Hi,

Check the attachment.

Not applicable
Author

Thanks a lot! It works very fine!