Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have one fact table related to shipments. Each shipment has an origin_country_wnbr and a dest_country_wnbr. We have one country dimension table. We are often trying to create shipment records where we specify the origin and destination pairs. How can I bring in the one country dimension table yet create a relationship to both the origin_country_wnbr and the dest_country_wnbr?
Solved! Go to Solution.
Duplicate your country table (referenced) in power query.
Now you can setup a new relationship to your newly created country table on destination_country
Duplicate your country table (referenced) in power query.
Now you can setup a new relationship to your newly created country table on destination_country
pls provide some sample data and expected output.
Proud to be a Super User!
You can try to use a ID country?
Not understanding your suggestion.
If you have the county in both tables, add an unique ID for each country and use it for the relationship
The country dim table has a primary_key assigned to each country code. Could I simply duplicate that key as a new column, then use it to create one of the two relationships needed to the fact table? I apologize for my lack of experience here. I am a very new PBI user and certainly appreciate your patience!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
78 | |
54 | |
39 | |
35 |
User | Count |
---|---|
102 | |
84 | |
48 | |
48 | |
48 |