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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
javieezy
Helper I
Helper I

Problem creating relationship

Dear all, 

 

I was trying to create relationship of the MONTH between different tables so I can put data from different tables into the same visual. I wasn't able to create relationship. Am I missing something fundamental? 

Table 1

javieezy_1-1625017620774.png

 

table 2

 

 
 
 

javieezy_0-1625017583571.png

 

I also created date table, but neither

 

javieezy_2-1625017667757.png

 

 

javieezy_3-1625017725064.png

 

any help will be appreciated. 

 

Br, 

 

 

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @javieezy ,

Try following soultion:

went to "Edit Queries" and selected the table where the non-duplicated values resided (the 'one' side of the relationship). I right clicked on the column containing the key values and selected "remove errors". Doing this then allowed me to create the 'many to one' relationship.

 

similar questions refer:

https://community.powerbi.com/t5/Desktop/The-cardinality-you-selected-isn-t-valid-for-this-relations... 

https://forum.enterprisedna.co/t/power-bi-relationship/1227 

https://community.powerbi.com/t5/Desktop/One-to-one-the-cardinality-you-selected-isn-t-valid-for-thi... 

https://community.powerbi.com/t5/Desktop/relationship-management/td-p/1297831 

 

Wish it is helpful for you!

 

Best Regards

Lucien

sevenhills
Super User
Super User

I will recommend to create a Month table, as you are interested in joining on Month.

 

Month Table columns

Month ... January, Feb... Dec...

MonthNumber ... 1, 2, 3, 4... 12

 

Mark Month column as Sort by column using MonthNumber, which will give better presenation of data in charts ...

 

hope this helps!

 

Check this article, to get an idea https://www.sqlshack.com/how-to-sort-months-chronologically-in-power-bi/

 

And then do the relationships to this Month Table...

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.