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: 
stevejones1
Contributor III
Contributor III

Percentage by Region

Hi

Please find the attached doc , i am trying to display the % by Region for each quarter , but unable to figure out expression , i am able to get expression for individual Region but i want to display 1 row for 1 region, currently my region values are duplicating.

Thanks!

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try these two expression

Alt($(eAdjExtCostAsiaPQ2), $(eAdjExtCostAsiaPQ1))

Alt($(eAdjExtCostEMEAPQ1), $(eAdjExtCostEMEAPQ2))


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Try these two expression

Alt($(eAdjExtCostAsiaPQ2), $(eAdjExtCostAsiaPQ1))

Alt($(eAdjExtCostEMEAPQ1), $(eAdjExtCostEMEAPQ2))


Capture.PNG

duncanblaine
Creator
Creator

Hi Steve

Looks like Sunny just got in there before me

From what I can see, it looks like the denominator in your Percentages is missing something.

In a simplified example:

Sum({<[SalesOutZyme.Type]={'SPR'}>}SalesOutZyme.AdjExtCost) / Sum(TOTAL <Geo.Region> {<[SalesOutZyme.Type]={'SPR'}>}SalesOutZyme.AdjExtCost)

The TOTAL qualifier will allow the percentage to aggregate across all values in the specified dimension.

I've attached the QVW which includes a new Pivot table which contains the new expressions. You might need to amend to swap in the variables.

RegionPerc.PNG