Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

Total % calculation

Hi,

I have got the below result in qlikview

Nevada

140

  1. 0.00%

Nevada

196

  1. 71.40%

Nevada

208

  1. 87.50%

Total % = 48%


But when i have tried to validate it in excel it showing avg of around 54%.


My calculation is right.


Please let me know how qlikview calculating the % total.


Logic:

num((sum({<Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}>} Sales))

/(sum({<Date={$(varMaxDate)},flag={'Wet Sign'}>} Sales)+sum({<Date={$(varMaxDate)},flag={'eSign'},Category={'Complete'}>} Sales)

+sum({<Date={$(varMaxDate)},flag={'eSign'},Category={'Not Complete'}>} Sales))*100, '#,##0'))

Thanks..


1 Solution

Accepted Solutions
pmccaffrey
Partner - Contributor II
Partner - Contributor II

In Excel you are taking an Average of an Average.

In QlikView it's taking the true Sum of one divided by the Sum of another.

For instance...

GroupSalesOpp%
A7813060%
B121770.59%
C3541372295.14%

True Average would be sum(Sales) / Sum(Opp)  = 93.85%

In Excel though, Average(60%,70.59%,95.14%) = 75.24%

View solution in original post

5 Replies
sunny_talwar

Where are you seeing 48%? Where do you want 54%? I have no idea what and where you are looking to get, whatever is that you are looking

vishsaggi
Champion III
Champion III

Sunny, we don't need single quotes for that variable varMaxDate like { '$(varMaxDate)' }

and there is an extra bracket ) at the end, I hope Naresh is aware of it.?

nareshthavidishetty
Creator III
Creator III
Author

Hi Sunny,

Qlikview is giving 71.40%+87.50%+0%/3=48%

but i got i excel avg(71.40%+87.50%+0%)=54%

I need to know is my calculation in qlikview is right or not.

Thanks..

annafuksa1
Creator III
Creator III

could you post your app ?

Anna

pmccaffrey
Partner - Contributor II
Partner - Contributor II

In Excel you are taking an Average of an Average.

In QlikView it's taking the true Sum of one divided by the Sum of another.

For instance...

GroupSalesOpp%
A7813060%
B121770.59%
C3541372295.14%

True Average would be sum(Sales) / Sum(Opp)  = 93.85%

In Excel though, Average(60%,70.59%,95.14%) = 75.24%