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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation for prediction

Hello,

I need help regarding prediction values. I describe my case briefly :

I have some TestObject and their Estimatedvalue are calculated. then from the value they can be sell in one or two steps with estimated efficiency.

Then I want to have the predicted sale in future by sum (Estimatedsale*EstimatedValue) in each month from different TestObject and plot them.

TestObjectEstimatedValueEstimatedsale1EffectMonthEstimatedsale2EffectMonth
A7,20,82017-040,22017-07
B60,32017-060,62017-09
C8,10,52017-090,4
D8,50,72017-050,2
E40,62017-060,42017-09
F5,70,52017-060,32017-07
G7,80,42017-090,4
2 Replies
Anil_Babu_Samineni

In theoretically, I got understand. when practical comes i need expected result as well. Is that possible to show expected outcome?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
swuehl
MVP
MVP

You could transform your data in a table that only shows a single effect month:

LOAD TestObject,

    EstimatedValue,

    Estimatedsale1 as Estimatedsale,

    Date#(EffectMonth,'YYYY-MM') as EffectMonth,

    '1' as Step

FROM

[https://community.qlik.com/thread/261218]

(html, codepage is 1252, embedded labels, table is @1);

CONCATENATE

LOAD TestObject,

    EstimatedValue,

    '2' as Step,

    Estimatedsale2 as Estimatedsale,

      Date#(EffectMonth1,'YYYY-MM') as EffectMonth

FROM

[https://community.qlik.com/thread/261218]

(html, codepage is 1252, embedded labels, table is @1);

Then you can use this EffectMonth as dimension:

2017-05-21 13_11_46-QlikView x64 - [C__Users_Stefan_Downloads_comm261218.qvw].png