- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Can't create a direct active relationship ... ambiguity between tables (Date table)
Hi all,
For one of my dashboards i created the following model:
Planned terms and invoices are connected with orders with the column 1. ordernumber.
Beside that the terms and invoices tables are connected with the date table.
For one of my 'table overview' i want to connect orders with the date table. I have a slicer which shows the bookyears and i want to filter the 'order overview' in my dashboard based on the year ready. The result i want to show is a table which only shows the orders ready in the selected year with the slicer. This is of course not possible because of the already established relations between the tables (ambiguity between tables). I can't connect the order overview with the terms or invoice table because this are no dimension tables.
Someone got a good solution for this?
Thx in advance.
Jop
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello @Jop1235123,
Can you please try the following:
1. Use Userelationship in Your Measures
SumOfOrdersByYearReady =
CALCULATE(
SUM(Orders[OrderValue]),
USERELATIONSHIP(Orders[YearReady], 'Date'[Date])
)
2. Creating a Disconnected Slicer Table
YearTable = DISTINCT ( SELECTCOLUMNS ( 'Date', "Year", YEAR('Date'[Date]) ) )
Then, you can use a measure to filter the orders based on the selected year from this new slicer
SelectedYear = SELECTEDVALUE ( YearTable[Year] )
OrderValueByYear =
CALCULATE (
SUM ( Orders[OrderValue] ),
FILTER (
ALL ( 'Date' ),
YEAR ( 'Date'[Date] ) = [SelectedYear]
)
)
Use this new measure in your visual instead of the direct column from the 'Date' table.
Hope this helps.
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂
Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello @Jop1235123,
Can you please try the following:
1. Use Userelationship in Your Measures
SumOfOrdersByYearReady =
CALCULATE(
SUM(Orders[OrderValue]),
USERELATIONSHIP(Orders[YearReady], 'Date'[Date])
)
2. Creating a Disconnected Slicer Table
YearTable = DISTINCT ( SELECTCOLUMNS ( 'Date', "Year", YEAR('Date'[Date]) ) )
Then, you can use a measure to filter the orders based on the selected year from this new slicer
SelectedYear = SELECTEDVALUE ( YearTable[Year] )
OrderValueByYear =
CALCULATE (
SUM ( Orders[OrderValue] ),
FILTER (
ALL ( 'Date' ),
YEAR ( 'Date'[Date] ) = [SelectedYear]
)
)
Use this new measure in your visual instead of the direct column from the 'Date' table.
Hope this helps.
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂
Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Thank you once again for the great assistance Sahir! Fixed the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Jop1235123
Hope the following methods can solve your problem:
You can create a separate date table specifically for the 'orders' table. This table would only include dates relevant to orders and could be linked directly to the 'orders' table. This allows you to filter orders by book year without interfering with the existing relationships between other tables.
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi Jayleny,
Thanks for your reaction.
This isn't the solution i am looking at. I am filtering with a year slicer and it has to interact with all the overviews on my dashboard. Otherwise i have to make 2 year slicers next to each other. I want one year slicer connected to all my overviews on the page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I would argue that orders and invoices are independent facts and should not be connected directly. Instead, orders should be connected to the calendar, and the invoices for an order can be accessed via TREATAS.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-22-2023 06:59 PM | |||
11-07-2019 06:25 AM | |||
12-21-2022 05:48 AM | |||
Anonymous
| 09-20-2023 01:32 AM | ||
07-18-2024 12:52 PM |