cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Mapping Dates Through Bridge Table

I have one many to many table AS orders, one bridge table AS Account Manager ID and the third many to many table AS Master Data(2).

 

I created a bridge table so my many to many tables could connect to each other and I connected them though an id. There are dates in both many to many tables and they don't communicate with each other. I need to filter by date in my report, from the Master Data(2) table, and have orders update to the data range selected. 

 

Bridge-Table.PNG

 

Can anyone help? I can't find this posted anywhere. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Mapping Dates Through Bridge Table

Hi @mgallacher,

 

You can create a date dimension table (suppose it's named as 'DimDate') using CALENDAR() function. Then this new table will contain a column with unique date values. Then, you can create a one to many relationship between 'orders' and 'DimDate' based on date field. Also, create a one to many relationship between 'Master Data(2)' and 'DimDate'. In that case, 'DimDate' works as a bridge table.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

4 REPLIES 4
Highlighted
Microsoft
Microsoft

Re: Mapping Dates Through Bridge Table

Hi @mgallacher

 

Why not have a separate date table that you connect to both your Orders and Master Data(2) table and use that as your filter table?

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Highlighted
Frequent Visitor

Re: Mapping Dates Through Bridge Table

Could you give a brief explanation or visual as to how you would set that up? I'm just a marketer who plays an analyst at work. I appreciate the help. 

Highlighted
Microsoft
Microsoft

Re: Mapping Dates Through Bridge Table

Hi @mgallacher,

 

You can create a date dimension table (suppose it's named as 'DimDate') using CALENDAR() function. Then this new table will contain a column with unique date values. Then, you can create a one to many relationship between 'orders' and 'DimDate' based on date field. Also, create a one to many relationship between 'Master Data(2)' and 'DimDate'. In that case, 'DimDate' works as a bridge table.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

Highlighted
Frequent Visitor

Re: Mapping Dates Through Bridge Table

Thank you! That solution worked well and I can create a filter from the new date table.

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors