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
jjasper
Helper II
Helper II

Connect 3 tables to a date table to filter a report

Hello, 

 

I have 3 tables that do not relate to each other all. The only column that is the same in the tables is the date column. I am working a report that has many pages of information and one main dashboard. I would like to be able to have one slicer on the main dashboard that will filter all the report (3 tables) to whatever they select. I am unsure of how to go about doing this. 

 

From my google searching I know I need a date table that the 3 tables link up to. When I do that everything breaks and doesn't filter correctly. I tried creating this and will show each table and their date fields. When I went to create the relationships it created the relationship but the filters never worked. I even did one table to see if I could figure it out. 

 

Any help would be greatly appriacted. I do like being given links to follow so I can understand but please don't send me down a rabbit hole. 

 

Here is my date table that I created:

jjasper_0-1604952666991.png

 

Date column in table 1:

jjasper_1-1604952710552.png

 

Date column in table 2:

jjasper_2-1604952750216.png

 

Date column in table 3:

jjasper_3-1604952793316.png

 

TIA

 

 

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @jjasper 

 

It’s my pleasure to answer for you.

According to your description,I think the reason for the error is that the date columns of your three tables have specific time, which leads to no corresponding value after establishing the relationship.You can create columns to format date like mm/dd/yyyy,then create relationship.

Like this:

 

Columnhan = FORMAT(HandHygiene[Date2],"mm/dd/yyyy")

 

11.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-janeyg-msft
Community Support
Community Support

Hi, @jjasper 

 

It’s my pleasure to answer for you.

According to your description,I think the reason for the error is that the date columns of your three tables have specific time, which leads to no corresponding value after establishing the relationship.You can create columns to format date like mm/dd/yyyy,then create relationship.

Like this:

 

Columnhan = FORMAT(HandHygiene[Date2],"mm/dd/yyyy")

 

11.png

Here is my sample .pbix file.Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

camargos88
Community Champion
Community Champion

@jjasper ,

 

How did you create the measures, if any ? Are you refering to this new table ?

Also, it's possible to share this pbix ?



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

Proud to be a Super User!



No measures have been created and yes I am refering to the new table. https://rbjschlegel-my.sharepoint.com/:u:/g/personal/jjasper_rbjschlegel_onmicrosoft_com/EURc6Ew7pg9... 

camargos88
Community Champion
Community Champion

@jjasper ,

 

What is the wrong part when you use this date table ?

Do you get wrong calculation ?



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

Proud to be a Super User!



No I get nothing. When I create the relationship everything is fine I get no errors. But when I go to add the filter to the main page (Dashboard) and select a date (November) all my data cards come up with blank. But when I add a slicer for each table individaully the data filters properly so that is where I am thinking there is an error in my date table or in the relationships with I create them. 

 

The only thing that comes up from googling is that you can't force a relationship to be created. But I have created many relationships in other reports and never have an issue. First time trying to make a relationships for 3 tables usings a date table. 

 

This is using the date table and I have the relationships created with the date table. 

jjasper_0-1604953901969.png

 

camargos88
Community Champion
Community Champion

@jjasper ,

 

How did you create you date table ? Does it include all the dates from the other 3 tables ?



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

Proud to be a Super User!



I followed this tutorial: https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi

 

And I hope it does and I have set from the beginning of the year until the end of the year. Two of the tables only started populating recently and the other has been going since the start of the pandemic.

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.