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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Percentage in pivot table

I have two table and ,

in table , I have (Item) and (Quantity/Ton)

in table , I have (debit) and (credit)

>> The "Balance" = (debit - credit)

** the relation between this two tables is the date only.

-------------------------------------------------------

sample.png

how can I calculate the Qty% and Qty*total Balance/Total Qty in qlikview using pivot table ?!!

every time I try I faced problem with duplicate in data.

sorry for bad English.

Regards,

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

[Qty%]: Sum([Quantity/Ton])/Sum(Total [Quantity/Ton])

[Total Balance]: rangesum( sum(total debit), -sum(total credit))

Qty*total Balance/Total Qty: sum([Quantity/Ton]) * [Total Balance] / sum(Total [Quantity/Ton])


And if that doesn't work that means I don't have enough information to make a good guess. In that case please post a small qlikview document that illustrates the problem.


talk is cheap, supply exceeds demand