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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Dates Table Relationship

Hi, I am having issues with relationship. I have two table. One is actual and one is bugdet. When I filter by country (although I create a seperate table), it does not work because they are both linked by Calendar. How can I get this to work?

 

Capture.PNG

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

Hi @Anonymous 

Which fields do the "calendar" and "actual vs budget" tables connect?

It seems they have a "many to many" relationship.

To make the relationship work, it needs a "one to many" relationship.

 

For example, please take a look at my test.

I merge "actual" "and "budget" tables to get a new table "actual vs budget",

Then create another table "country" based on the table "actual vs budget",

country = VALUES('actual vs budget'[country])

Assume "period" in the calendar table from your screenshot refer to four quarter one year (1,2,3,4),

 i can create a calendar table as my pbix shown,

then i create a new table based on this table

period yyyy table = VALUES('calendar'[period yyyy])

Finally, with correct relationships, i can filter "actual vs budget" based on country/date period.

11.png

10.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
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

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Is this problem sloved? 

If it is sloved, could you kindly accept it as a solution to close this case?

If not, please let me know.

 

Best Regards

Maggie

v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Which fields do the "calendar" and "actual vs budget" tables connect?

It seems they have a "many to many" relationship.

To make the relationship work, it needs a "one to many" relationship.

 

For example, please take a look at my test.

I merge "actual" "and "budget" tables to get a new table "actual vs budget",

Then create another table "country" based on the table "actual vs budget",

country = VALUES('actual vs budget'[country])

Assume "period" in the calendar table from your screenshot refer to four quarter one year (1,2,3,4),

 i can create a calendar table as my pbix shown,

then i create a new table based on this table

period yyyy table = VALUES('calendar'[period yyyy])

Finally, with correct relationships, i can filter "actual vs budget" based on country/date period.

11.png

10.png

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors