Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everyone,
I am facing a situation where I have the following tables and structure:
orders (ID, OrderDate)
orderitems (ID, order_ID, product, quantity_ordered)
deliveryitems (ID, orderitems_ID, delivery_ID, quantity_delivered)
deliveries (ID, DeliveryDate)
date (Date)
I am trying to compare running totals of Orders (quantity_ordered by OrderDate) and Deliveries (quantity_delivered by DeliveryDate).
As I have dates in two different tables, I created a dedicated date table in order to use it for an axis. However, the problem I run to is that I cannot make the relationships between dates in tables 'date' and 'deliveries' since it would create ambiguity.
How can I solve this?
Thank you for your help, I feel stuck.
Jan
Hi JanBuzek,
What's the relationship between the two tables and could you share some sample data?
Regards,
Jimmy Tao
Hello Jimmy, this is the structure I am working with.
I am not sure what kind of sample data would help. The tables keep the following data:
As you can see creating a Date table tied to both orders and invoices leads to an ambiguous relationships which Power BI does not want to let me create.
Thank you for your help.
Jan
You have two options. You could create a second calendar date table to use with Deliveries. Or, you could create an inactive relationship between your date table and Deliveries table and use USERELATIONSHIP.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |