Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to manage total outlets vs ordered outlets in data model

@I am trying to manage tables for total outlets vs ordered outlets in QVW but getting LOOPs.

Is anyone have solution for this issue. Please help to sort out it.

    

Table: Schedule_Outlets
Outlet_CodeSales_Man_CodeCategoryID
T000190030040051003A001
T000190030040031003A001
T000190030040061003A001
T000190030040091003

A001

Table: Product
CategoryIDProductCodeProductName
A00130008Chocolate 200g
A00130009Chocolate 300g
A00130010

Milk Chocolate 200g

Table: Order
OrderIDOrder_DateProductCodeOutlet_Code
AZ161004576905/01/201630009T00019003004003
AZ161004576905/01/2016300010T00019003004003
AZ161004577006/01/201630008T00019003004006
AZ161004577006/01/201630009T00019003004006
AZ161004577006/01/201630010T00019003004006

How to join these tables because I am getting "LOOP" when I join then in QVW

I need following results.
ProductCodeFrom_DateTo_DateTotal_Schedule_OutletsTotal_Productive_Outlets%age
3000905/01/201606/01/20164250%
7 Replies
Anonymous
Not applicable
Author

Does anyone have solution for this issue, please help

sunny_talwar

If this isn't resolved why have you masked it as assumed answer? Remove that so that people can consider helping you

Anonymous
Not applicable
Author

Now there is no option to remove assumed answer

Please help if you have solution.

Anonymous
Not applicable
Author

Please help if you have its solution

sunny_talwar

Is this what you are trying to get?

Capture.PNG

Script:

Schedule_Outlets:

LOAD Outlet_Code,

    Sales_Man_Code,

    CategoryID as CatID

FROM

[Total Outlets Vs Ordered Outlets by Product.xlsx]

(ooxml, embedded labels, table is Schedule_Outlets);

Product:

LOAD CategoryID,

    ProductCode,

    ProductName

FROM

[Total Outlets Vs Ordered Outlets by Product.xlsx]

(ooxml, embedded labels, table is Product);

Order:

LOAD OrderID,

    Order_Date,

    ProductCode,

    Outlet_Code

FROM

[Total Outlets Vs Ordered Outlets by Product.xlsx]

(ooxml, embedded labels, table is Order);

Data Model:

Capture.PNG

Anonymous
Not applicable
Author

Thanks for sparing your time, I appreciate.

Yes I need similar results but 'Total_Schedule_Outlets' should be count of all outlets those belong to relevant Product CategoryID.

By given solution QlikView shows Schedule Outlets with EQUAL join to Productive Outlets at my end. i.e. Schedule 2 & Productive 2.

How did you calculate 4 in Schedule Outlets ?

sunny_talwar

I am not sure I follow you Imran. Would you be able to elaborate?