Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

3 Tables, 1 date slicer

I feel like this is probably an easy question and i'm just not seeing the obvious.  I've got 3 tables, Site List, Materials Processed, Hours.  Site List has a 1 to Many relationship with both tables.

 

I've created a report with a Timeline Slicer that uses the dates from the Materials Processed Data table.  I've created some measures that get a SumX of Materials Processed and a SumX of Hours data.  I then have a last measure that is a Materials Processed divided by the hours.  These measures are within the Site Table.

 

The problem I am facing is that while date slicer is correctly limiting the Materials Processed to whichever date range is selected, its not effecting the Hours data.  I was hoping that the same date limitation would be applied to the Hours table, but i've not been able to make it do it.  Both tables have a date field both with the same name and of type 'Date'.

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @Anonymous,

 

To solve your current question, what you need to have is a Date table, and then link your 3 tables Site List, Materials Processed, Hours to the Date table via a relationship.

 

If you need to understand what a Date table does you can read this blog post: Do You Need a Date Dimension?


Next if you now want to go ahead and create a date table, here is my blog post explaining how to easily do this: Power BI – How to Easily Create Dynamic Date Table/Dimension with Fiscal Attributes using Power Query

 

And once you hvae created the relationships, you can then create your date slicer from the Date table. Which will then filter all the tables included in the relationships.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @Anonymous,

 

To solve your current question, what you need to have is a Date table, and then link your 3 tables Site List, Materials Processed, Hours to the Date table via a relationship.

 

If you need to understand what a Date table does you can read this blog post: Do You Need a Date Dimension?


Next if you now want to go ahead and create a date table, here is my blog post explaining how to easily do this: Power BI – How to Easily Create Dynamic Date Table/Dimension with Fiscal Attributes using Power Query

 

And once you hvae created the relationships, you can then create your date slicer from the Date table. Which will then filter all the tables included in the relationships.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Thanks! I knew it would be something easy that i had overlooked.

Hi @Anonymous,

 

Glad to have helped.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.