Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a scenario like this,
We have shipments data for Customers that doesnot have a customer number in our Customer Master table. So what happening is, the shipping company put a Dummy Customer number if they dont have any customer number for that customer.
So, Now my problem is, inmy data model, CustomerID is the key to connect customer Master and shipment table and other tables. Since, Dummy Customer ID/ Number does not resides in Customer Master and it only resides in Shipment table its not showing in the dashboard table after I reload the data model.
Is there any way i can show the dummy customer details in the Dashboard table?
Any Suggestion please!
Thanks,
Ahmed
You can use Exist in load to get the "real" or Dummy Customer.
Could you post sample of your data?
Ahmed,
This is the case that you are making Customer master table as fact table I mean base table, hence you are not getting dummy customer code in the dashboard. But to overcome this problem you can try like this
ShipmentData:
Load Cust_ID, Ship_Date, Ship_Qty
from Shipment_table
Left join (ShipmentData) // Here you can you use Left keep also depending upon on the reqmnt
Customer_Master:
Cust_ID, Cust_Name, Cust_Address
From Customer_Master_Table;
Please let me for any clarification.
The right thing to do is to add a generic (dummy) customer into the master table.
Can you provide a small data set or some data to get the best solution
Something like this,
Customer_Master:
Load
Customer_ID,
//other fields
from customer master;
ShipmentTable:
Load
if(exists(Customer_ID,Shp_Cusomter_ID),Shp_Cusomter_ID,'Unassigned') as Customer_ID;
//other fields
i agree...this way, data is not lost.