Hi Team,
I’m not sure how to explain my issue in correct format. so i try to explain this in simple way.
let’s say i have two Fact tables table1; table2. i tried to do in 2 different ways
Merge Queries:
Join between Fact to Fact table.
Table1 Col names: Facility Code; Date;Original,Apportion,Actual .
Table2 Colnames: Facility Code;Date;Capabilitybbls
Merger Queries: i try to Merge table1 with Table2 using full outer join.(i want everything from table1 and as well as table2 selected column) Joining on Facility Code from table1 with Facility Code of table2.
Note: why I want is… there are few facility codes for that date in table1 that are not in table2 viceversa.
My Need: ALL I want is to create table visual and get all table1 columns and only CapabilityM3 column from table2.
Capability M3 is a Calculated Column that uses this logic below
CapabilityM3: Capabilitybbls/6.289* (No of days in a month).
My Issue: after doing Merge the joining condition is not showing up correctly in table visual.
Example:
Table1:
Table2:
Result Table3:(I want this to show in my dashboard)
But the Result in my dashboard table is showing this:
Facility Code For Banana for 1/1/2019 is Missing. when i do a join between facility code on table1 & table2 it is considering only one Facility Code of table1. even though doing full outer Join.
so i taught if we do join on both facility code and Date column it shows just for
banana 1/1/2019 1380187.63 0 0 0
not Both for Facility Code “Banana”:
banana 1/1/2019 1380187.63 0 0 0
banana 3/1/2020 1380187.63 15000 20000 25000
I hope I made it clear. any help on this is much appreciated.
Same thing without Using Merge i tried using Relationship between Table1 and Table2 to joining on Facility code and Table1 joined to my Date dimension table.
Help me getting the Result table 3
Thank You.