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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Relationship with calendar Table

Hi everyone,

I have two Fact tables that i want to relate to a Calendar calendar but when i see the values in the matriz is something wrong.
As you see in the picture one, i use a bridge table with the years to make the relationship between the two fact tables and the Calendar table (Tabla Calendario). When i see the model and slice by the year its okay, but when i slice by month its computing the same values for every single month. What i did wrong and how can i solve it?
Relationships.pngmodel.png
Thanks !

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

Hi @Anonymous 

Your fact tables and calendar table are connected with [year] column, so when filtering table on [month], it would show incorrect value.

If you fact tables have [year] and [month] columns, you can create a  column=[year]&[month], then create [year]&[month] column in your calendar table, create relationships between them.

 

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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Your fact tables and calendar table are connected with [year] column, so when filtering table on [month], it would show incorrect value.

If you fact tables have [year] and [month] columns, you can create a  column=[year]&[month], then create [year]&[month] column in your calendar table, create relationships between them.

 

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.

 

Smauro
Solution Sage
Solution Sage

Hey @Anonymous

Your model is working as it should, judging on how you've configured the relationships.

See, since what is actually filtering the tables it 'dAño', it doesn't matter if you select a month, because every month points first to the corresponding year and then data is filtered by that year. You should reconfigure the relationships, and if you have an actual date column just use this one. In my opinion, 'dAño' is not needed as a table, since you already have [año] in your 'Tabla calendario'.

Best,
Spyros



Spyros Mavroforos

Data Consultant


Find me on LinkedIn or drop me an email

eSpyros

Pragati11
Super User
Super User

HI @Anonymous ,

 

I think you need to make your relationships bi-directional, in-order to get the data filtered.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.