Exclude a specific relationship from a Discovery
Hi everyone,
I'm working with a data model that includes multiple relationships between fact tables and a date table. Currently, there's an existing relationship between a certain table and another dimension, but in one specific Discovery, I want to disable that relationship so a different one (specifically with the date table) can take effect instead.
Is there a way to make a certain relationship not apply or be ignored in a specific Discovery, without changing the overall data model?
Any suggestions or best practices would be much appreciated!
Thanks in advance,
Itay
4 replies
-
Hi
Can you share a screenshot of the model and mark the relationship you don't want to apply?
Also I don't understand how come this relationship overrides the date dimension. Can you elaborate on that as well?
-
Hi ,
here’s the situation:
tblDateRange Table:
I created this table (it’s not part of the original data) as a list of dates, and it works with the other tables. It contains a column called Date.tblInvoice Table:
This table includes a column called InvoiceDate, which is related to the Date column in tblDateRange.tblProjects Table:
This table also has a Date column, which is related to the Date column in tblDateRange.
I have a report (Discovery) that displays invoices for each project by month. However, I need the controlling date column to be InvoiceDate rather than the Date from the tblProjects table. Due to how the Discovery is built and the relationships in the model, tblDateRange is currently showing the date from tblProjects. In this specific Discovery, I need the InvoiceDate to be represented in the Date column of tblDateRange.
This distinction is very important because I have another Discovery where the date should be based on the InvoiceDate column.
I am attaching screenshots of the relationships in the model for further clarity.
o3-mini-high
-
Hi, Projects have dates and invoices have dates.
There is also aDateRange
table that is connected to the other tables. Because of the relationship setup (as shown in the image I’ve attached), I’m running into an issue.Currently, I’m working on two discoveries:
The number of invoices by invoice date
The number of invoices by project date
I want to stick as closely as possible to the
DateRange
date, since that’s the main slicer for my project. However, due to the relationship setup, I can’t — and in the report slide showing the number of invoices by project date, I have to use the project table’s date slicer instead. But then, I need it to work in parallel with theDateRange
slicer, so I can use that one as a background filter.What should I do?