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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Percentage in Pivot Table

I have created Pivot Table as follows

DESCRIPTIONACTUAL    2014ACT_RATIOACTUAL    2013ACT_RATIO
SALES7,332,885100967,954100
LABOUR339,5277222,2627
MATERIAL831,33814338,96914
COMMISSION890,1251275,00012
GROSS_PROFIT5,271,89668331,72268
STAFF_EXP853,4941140,00011
ADMIN_EXP857,4511180,00011
SELLING_EXP509,6397100,0007
TOTAL_EXPENSES2,220,58429220,00029
OTH_INCOME40,000140,0001
NET_PROFIT3,091,31239151,72239

I have calculated Actual Ratio bases on the Sales Value of Each Year for 2014 and 2013.But The calculation returns the same ratios for  both years . Kindly have look at my QV document and help me to correct the expression to suit my requirement

13 Replies
jyothish8807
Master II
Master II

Hi Upali,

Can you share your expression you are using? Personal edition issue.

Regards

KC

Best Regards,
KC
upaliwije
Creator II
Creator II
Author

The below is my expression

Sum(ACTUAL)/$(=$(=vActual))*100

vActual=sum({$<DESCRIPTION={'SALES'}>}ACTUAL) is my variable

jyothish8807
Master II
Master II

Hi Upali,

Rename in the field in your budget table:

load

year,

month,

sales as bud_sales,

labour as bud_labour,

.

.

.

from <>

In exp:


Sum(sales)/sum(bud_sales)


Use your condition which ever you are using.

Hope it will work.


Regards

KC

Best Regards,
KC
upaliwije
Creator II
Creator II
Author

Thanks

Budget Sales has nothing to with the Actual sales. What I want to calculate the Ratio of Labour Material etc against Sales

jyothish8807
Master II
Master II

Hi Upali:

try this:

exp:

sum([ACTUAL    2014])/sum(TOTAL([ACTUAL    2014]))

In number tab:

Select integer

show in percentage,

PFA

Regards

KC

Best Regards,
KC
upaliwije
Creator II
Creator II
Author

Thanks for your help

But this not what I am Expecting

SALES7,332,885100967,954100
LABOUR339,5275222,26223
MATERIAL831,33811338,96935

My requirement is as follows

5%=(339527/7332885)*100

23%=(222262/964954)*100

upaliwije
Creator II
Creator II
Author

Pls  help me a an Answer

jyothish8807
Master II
Master II

Hi Upali,

for Material do you want like this?

(831,338/7,332,885)*100


Regards

KC

Best Regards,
KC
upaliwije
Creator II
Creator II
Author

yes that is correct