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

How do i create a Sales Index

Hi! Im interested on creating a sales index based on year 2010. I´m using a pivot table so that rows show months and coloms show years.

Im using the following:

(Sum(Sales )) /sum( {1<YEAR= {2010} >} Sales)

But its not working, it just gives mi "1"'s in 2010 column an "-"'s in the other colums

Please help

14 Replies
sujeetsingh
Master III
Master III

Sendy,

Try this

(Sum(Sales )) /sum( {$<YEAR= {2010} >} Sales)

Not applicable
Author

The same. Still not working

sujeetsingh
Master III
Master III

plz give a sample

Not applicable
Author

i leave u the images

Not applicable
Author

Try using (Sum(Sales )) /sum({1<Year= {2010} >} TOTAL Sales)

Not applicable
Author

By doing that it divides the value of each month by the whole value of the 2010, and what i want to do is this:

month(i)/month(i,year2010)

sujeetsingh
Master III
Master III

Sendy please explain that what calculation you want.

Dimension i?

Not applicable
Author

(month)/(the same month on 2010)

example

for feb 2012:

feb2012/feb2010

for jan 2013:

jan2013/jan2010

and so...

in a matrix notation where we have months and years

for the position a;b

(month (a), year (b)) / (month (a) ; year(2010) )

Not applicable
Author

Hi

Take Month as dimension..

SET vMaxYear=MAX(Year)    //(2013)

sum({<Year={$(vMaxYear)}>} value)/sum({<Year={$(=Max(Year(Year))-3)}>} value)

Regards-Bika