Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

What-If Analysis

Is this implementable in QlikView?

************************************************************

1. [Selling Price] is Fixed.

2. When [Status] is DONE, [Buy Price] is Fixed.

3. When [Status] is WIP, [Target Buy Price] is [Selling Price]/[Target Ratio]

4. <Total Sell Price> = Sum([Sell Price])

5. <Actual+Target> = Sum([Buy Price]) + Sum([Target Buy Price])

6. <Overall Ratio> = <Total Sell Price>/<Actual+Target>


The objective is to do a What-If analysis where user can adjust the Target Ratios (using input boxes or sliders) to achieve a certain Overall Ratio.


************************************************************


CustomerProductSell PriceBuy PriceTarget Buy PriceTarget RatioStatus
A122002000.00DONE
A23000

2500.00

1.2WIP
B122001692.311.3WIP
C350004545.451.1WIP

Total Sell Price12400
Actual+Target10737.76
Overall Ratio1.15
1 Solution

Accepted Solutions
sunny_talwar

May be using INPUTFIELD

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfi...

INPUTFIELD [Target Ratio];


Target:

LOAD * INLINE [

    Customer, Product, Status, Sell Price, Buy Price, Target Ratio

    A, 1, DONE, 2200, 2000, 1.1

    A, 2, WIP, 3000, , 1.5

    B, 1, WIP, 2200, , 1.3

    C, 3, WIP, 5000, , 1.1

];


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

May be using INPUTFIELD

https://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptPrefixes/Inputfi...

INPUTFIELD [Target Ratio];


Target:

LOAD * INLINE [

    Customer, Product, Status, Sell Price, Buy Price, Target Ratio

    A, 1, DONE, 2200, 2000, 1.1

    A, 2, WIP, 3000, , 1.5

    B, 1, WIP, 2200, , 1.3

    C, 3, WIP, 5000, , 1.1

];


Capture.PNG

Anonymous
Not applicable
Author

Thank You! This is exactly what I needed.