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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
lfalmoguera
Creator
Creator

Percentages for a crosstable

Hi all,

let me first thank you in advance.

I am facing a little problem trying to show data in a percentage way.

I have uploaded the example I am working with.

I have a crosstable with information related to countries, products and month.

The first graph is easy to made. I show the current values for every combination. But the second graph is the one I cannot make it work. I need every column to be related to 100%. For instance, for April 09 I have Data values, and I need to obtain Data %. And so on for every month/country.

CountryDate_okProductDataData %
FR01/04/2009A37.913236.2%
FR01/04/2009B32.460031.0%
FR01/04/2009C34.383532.8%

GE01/04/2009A39.888736.1%
GE01/04/2009B48.055143.5%
GE01/04/2009C22.410320.3%

IT01/04/2009A20.348230.2%
IT01/04/2009B25.823438.3%
IT01/04/2009C21.300631.6%

SP01/04/2009A49.516841.5%
SP01/04/2009B39.237132.9%
SP01/04/2009C30.674925.7%

UK01/04/2009A35.446129.7%
UK01/04/2009B49.254341.3%
UK01/04/2009C34.449328.9%

Thanks a lot.

Labels (1)
2 Replies
prieper
Master II
Master II

You need to "tell" QlikView, over which dimensions you wish to have the aggregation, thus expression may look like

=sum(Data)/sum(total <Country> Data)


See the attached - have removed the month from the dimension.

HTH
Peter

lfalmoguera
Creator
Creator
Author

Thank you so much for the help!

It worked perfectly!