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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors