Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
hobanwashburne
Creator
Creator

Help with a product mix forecast

I have attached a sample data set that is representative of a MUCH larger data set.

We received forecasts at a customer level for the upcoming year, I would then like to apply those forecasted changes to the actual sales in FY2014 resulting in an FY2015 Projection (this has been done manually in the table CompleteDataSet). Also where we did not receive a forecast (two of the customers) we would like to replace the null with a standard value (13% was manually entered in the table CompleteDataSet).

The output goal would be a product mix for each branch/channel.

The final result for Branch 100 Channel Dist should be:

A: 31%

B: 16%

C: 11%

😧 27%

E: 14%

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Something like attached?

View solution in original post

5 Replies
swuehl
MVP
MVP

You can do it like this:

SampleDataSet:

LOAD *,

          ForecastedChange * FY2014+FY2014 as FY2015_Projection;

LOAD Branch, Channel, ProductFamily, FY2014,

          if(len(trim(ForecastedChange)),ForecastedChange,0.13) as ForecastedChange;

LOAD * INLINE [

    Branch, Channel, Customer, ProductFamily, FY2014, ForecastedChange

    100, Dist, 7871, A, 927, 0.11

....

];

Kushal_Chawda

Please see the attached.

hobanwashburne
Creator
Creator
Author

Thank you both (you both had essentially the same suggestion). However, I'm still in need of the second part. I need to be able to generate a chart that looks similar to the image below.

Clipboard01.jpg

swuehl
MVP
MVP

Something like attached?

hobanwashburne
Creator
Creator
Author

Exactly.

It was the " sum(total<Branch,Channel> FY2015_Projection) that I couldn't figure out.

Thank you!