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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors