Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
silambarasan
Creator II
Creator II

How to achieve the result that appear in third image from first two images?

Image  1:

Capture.PNG

Image  2:

unnamed.png

Result

d.PNG


1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try this script:

Pricing:

LOAD Product,

    Start,

    End,

    Price

FROM [comm197554_pricing.xlsx] (ooxml, embedded labels, table is Sheet1);

Scenario:

LOAD *, AutoNumber(RowNo(),Product) as Counter;

LOAD Product,

    Date,

    Qty

FROM

[comm197554_Scenario.xlsx]

(ooxml, embedded labels, table is Sheet1)

While IterNo() <= Qty;

left Join(Scenario)

IntervalMatch(Counter, Product)

LOAD Start, End, Product

Resident Pricing;

left Join(Scenario)

LOAD * Resident Pricing;

Drop Table Pricing;

Then create a straight table object with Product, Date and Qty as dimensions and sum(Price) as expression.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Try this script:

Pricing:

LOAD Product,

    Start,

    End,

    Price

FROM [comm197554_pricing.xlsx] (ooxml, embedded labels, table is Sheet1);

Scenario:

LOAD *, AutoNumber(RowNo(),Product) as Counter;

LOAD Product,

    Date,

    Qty

FROM

[comm197554_Scenario.xlsx]

(ooxml, embedded labels, table is Sheet1)

While IterNo() <= Qty;

left Join(Scenario)

IntervalMatch(Counter, Product)

LOAD Start, End, Product

Resident Pricing;

left Join(Scenario)

LOAD * Resident Pricing;

Drop Table Pricing;

Then create a straight table object with Product, Date and Qty as dimensions and sum(Price) as expression.


talk is cheap, supply exceeds demand
silambarasan
Creator II
Creator II
Author

Thank you so much.I got it..How to improve these skills and all..pls reply

Gysbert Wassenaar

Gysbert Wassenaar

silambarasan
Creator II
Creator II
Author

super