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

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

Divide some value of same column.

Hi all

I have this pivot table:

tabella.png

In the column "Total" i'd like to divide each partial value of "Quota di Mercato" by Country, with total value of "Quota di Mercato" by Division.
For example:
- In corrispondence of "Belgium" i'd like to have: 0,09% / 2,11%

- In corrispondence of "Germany": 0,85% / 2,11%

- and so on...

I'm still not very good with the QlikView sintax expression, so i need help

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like:

CountryMarketShare / (sum(total <ProductName> LineSalesAmount)/sum(total LineSalesAmount))

see attached example.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
daveamz
Partner - Creator III
Partner - Creator III

Hi,

To calculate the total of Quota di Mercato by division you can use sum(total <Division> Data).

Regards,

David

Not applicable
Author

I try to explain better:

tabella.png

I have this table where there are Product, Division and Country.

The expression to calculate "Vendite" (Sales) is the following:

=Sum(LineSalesAmount)

The column "Quota di mercato" (Market Share) is calculated as follow:

=Sum(LineSalesAmount) / Sum(Total LineSalesAmount) * 100

Now, i have to calculate "Indice di penetrazione" (Penetration Index).
The math formula is this :

PenetrationIndex = (CountryMarketShare / DivisionMarketShare) * 100

Can someone help me?

swuehl
MVP
MVP

As Daveamz01 mentioned, you can add a field list to the TOTAL qualifier, stating the dimensions that still need to be considered in your aggregation. So your Index could probably calculated like

=Sum(TOTAL<ProductName, DivisionName> LineSalesAmount) / Sum(TOTAL LineSalesAmount)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like:

CountryMarketShare / (sum(total <ProductName> LineSalesAmount)/sum(total LineSalesAmount))

see attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you, it works perfectly