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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation of percentual increase of calculated dimension

Hi, QV community

I would be grateful if someone could help me with the following issue.

I set a simple dataset with dummy data.

I need to calculate the percentual difference between hist.sales and forecast

In the pivot chart, I added a calculated dimension =(fcst-hist)/hist

I works fine for lines, but I need to make the same operation with totals (as Excel pivot charts automatically do!!!)

In short, I need QlikView to calculate and show the value in yellow

(sum(fcst)-sum(sales))/sum(sales)

Thank you in advance!

base data

articleHist.salesForecast% increase
item 1151820,00%
item 2172229,41%
item 3192742,11%

intended report

Etiquetas de filaHist.salesForecast% increase
item 1151820,00%
item 2172229,41%
item 3192742,11%
Total general516731,37%
2 Replies
nagaiank
Specialist III
Specialist III

If you set the Total mode to expression total, you get the desired result.

Capture.PNG.png

Capture1.PNG.png

Not applicable
Author

Now it works! Thank you for your help!