Forum Discussion
Single date slicer to filter multiple date tables
- 8 years ago
Shouldn't your slicer be based on the dates in a Date Table where the Date field is related to all of the relevant date fields in your other tables?
Hey jscottNRG
The relationships that you are showing indicates that
Calendar ->Final Inspection -> Job Info -> Rough Inspection
So if you link Rough Inspection to Calendar it already has a relationship via the Job Info -> Final Inspection so you cannot create another active link where an active link already exist.
As edhans would have indicated you can use CROSSFILTER to over come model relationships
OR
you will need to restructure the data. If you can upload a redacted sample set that would be great.
Here is a sample from a file I am working with.
My focal table (fact table) is projects which has associated financial data (dim table) then i have other tables link to calendar. But part of your problem might be related to the fields you are using to from these relationships as well.
In my instance my Financial take is linked to project by an ID but Financial is link to Calendar via Date.
Are you using the dates to form relationships other than between the Calendar and Final Inspection?
I solved the issue where restricting the date range on the date slicer was causing visuals to go blank. The problem was that the date fields in RoughInspections and FinalInspections were datetime, and my Calendar table was date only. I thought I had dropped the time component but had only changed the display format in the Data view. I had to go back to adjust the query settings like this:
Transform -> Date Only
@ Aree and edhans were right about the relationship problem causing the deactivated relationship between Calendar and RoughInspections. The existing relationship path from Calendar ->Final Inspection -> Job Info -> Rough Inspection meant there was a conflict when I tried to activate a relationship between Calendar and RoughInspections. I fixed it by setting the Cross filter direction for the relationship between RoughInpections and Job_info to "Single."
Thanks again to everyone who contributed for the help!
- edhans8 years ago
Community Champion
"I solved the issue where restricting the date range on the date slicer was causing visuals to go blank. The problem was that the date fields in RoughInspections and FinalInspections were datetime, and my Calendar table was date only."
Been there, done that. :smileyhappy:FWIW, you can also just make it Date only by clicking on the calendar icon in the field name, and selecting Date. What you did was extract the date. If you just change the type to date (vs Date/Time, or Date/Time/Timezone) it does the same thing.
Honestly, I am not sure what the difference is either. But I've learned to look at the little icon.
- Calendar - date only
- Calendar with clock - date/time
- Globe with clock - date/time/timezone.
Glad you got it all sorted.
- Anonymous7 years agoNot applicable
I have implemented the Date Dimension. Two tables Investment logs and Customers are linked as highlighted below. The measusures from the investment logs tables are responding to the slicers but the measures from the customer table are not responding. The data type for the Customers[daatecreated] and Investmentlogs[trandate]
have been set to Date , dd/mm/yyyy same goes for the Date Dimension. I will need help form anyone as soon as possible.
- Aree7 years ago
Resolver I
Hey Mate,
try adjusting the cross filter direction to both. You currently have the cross filter direction to single.