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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Pivot Table

Hi

I have table like this

MonthDimVals
JulyCustom brokers10
JulyDuty20
JulyFreight inbound30
JulyFreight outbound40
JulyLogistic overhead50
JulyNet Revenues1000
JulyOther500
JulyWarehousing26
AugCustom brokers20
AugDuty30
AugFreight inbound40
AugFreight outbound50
JulyLogistic overhead60
AugNet Revenues2000
AugOther1500
AugWarehousing32

and i have to pivot table and it show all items except "other' and "net revenues and each value should be divided by net revenue month wise as sample below.

DimJulyAug
Custom brokers'=10/1000'=20/2000
Duty"=20/1000
Freight inbound"=30/1000
Freight outbound"=40/1000
Logistic overhead

I am new to qlikview. can you please help on this

regards

ramu

D
4 Replies
sushil353
Master II
Master II

Hi,

It is simple to make it in pivot table.

add dimension Dim as first dimension and Month as second.

Then write expression as Sum({<Dim-={'Other','Net Revenues'}>}Vals)/Sum({<Dim={'Net Revenues'}>}Vals)

Now hold the month dimension and move it over the expression in pivot table.

HTH

Sushil

Not applicable
Author

Hi,

You can use a calculated dimension if(Dim='Other' or Dim = 'Net revenue',null(),Dim) and select suppress when value is null.

In the expression sum(Vals)/Sum({<Dim={'Net Revenue'}>}Vals)

mdmukramali
Specialist III
Specialist III

Dear,

Kindly find the attached file.

May there is better approach than mine solution.

Thanks,

Mukram

Not applicable
Author

Hey Ramu,

    You can drag month column to horizontal.

    And in expression

sum({<Dim<>{'Net Revenue'} and Dim<>{'others'}}Vals) / (sum({<Dim={'Net Revenue'}Vals))

It will work

And fulfill your requirement.