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
adrien5555
Helper II
Helper II

Can't create a relationship where it should be obvious...

Hi all,

 

Getting this error again:

 

test1.png

 

The table which points to the "country" table has a calculated column as following:

 

test2.png

 

The "country" table:

 

 

test3.png

 

What am I missing here??

 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@adrien5555 You have Cyprus twice => once in Europe and once in Asia

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Also make sure that your Country/Continent table has onle 1 unique value for the country.  I just ran into a similar situation saying the error is impossible, only to find out that my lookup table did in fact have two identical values in the key field and therefore there was no unique key to look up the data from the main table. 

@Anonymous @Niels_NL : I could get more details by creating the relationship (or trying) from the 'manage relationship' button :

 

 

test.png

 

What I really don't get is that the Continent>Country column has unique values... Would it be because of the continent column, as values are not unique??

 

Below is the full table,

Thanks for helping...

 

ContinentCountry

AsiaAfghanistan
EuropeAlbania
AfricaAlgeria
OceaniaAmerican Samoa
EuropeAndorra
AfricaAngola
South AmericaAnguilla
OceaniaAntarctica
South AmericaAntigua and Barbuda
South AmericaArgentina
AsiaArmenia
South AmericaAruba
OceaniaAustralia
EuropeAustria
AsiaAzerbaijan
South AmericaBahamas
AsiaBahrain
AsiaBangladesh
South AmericaBarbados
EuropeBelarus
EuropeBelgium
South AmericaBelize
AfricaBenin
South AmericaBermuda
AsiaBhutan
South AmericaBolivia
EuropeBosnia and Herzegovina
AfricaBotswana
OceaniaBouvet Island
South AmericaBrazil
OceaniaBritish Indian Ocean Territory
South AmericaBritish Virgin Islands
AsiaBrunei
EuropeBulgaria
AfricaBurkina Faso
AfricaBurundi
AsiaCambodia
AfricaCameroon
North AmericaCanada
AfricaCape Verde
South AmericaCayman Islands
AfricaCentral African Republic
AfricaChad
South AmericaChile
AsiaChina
OceaniaChristmas Island
OceaniaCocos [Keeling] Islands
South AmericaColombia
AfricaComoros
AfricaCongo - Brazzaville
AfricaCongo - Kinshasa
OceaniaCook Islands
South AmericaCosta Rica
EuropeCroatia
South AmericaCuba
EuropeCyprus
AsiaCyprus
EuropeCzech Republic
AfricaCôte d’Ivoire
EuropeDenmark
AfricaDjibouti
South AmericaDominica
South AmericaDominican Republic
EuropeEast Germany
South AmericaEcuador
AfricaEgypt
South AmericaEl Salvador
AfricaEquatorial Guinea
AfricaEritrea
EuropeEstonia
AfricaEthiopia
South AmericaFalkland Islands
EuropeFaroe Islands
OceaniaFiji
EuropeFinland
EuropeFrance
South AmericaFrench Guiana
OceaniaFrench Polynesia
OceaniaFrench Southern Territories
AfricaGabon
AfricaGambia
AsiaGeorgia
EuropeGermany
AfricaGhana
EuropeGibraltar
EuropeGreece
South AmericaGreenland
South AmericaGrenada
EuropeGuadeloupe
OceaniaGuam
South AmericaGuatemala
EuropeGuernsey
AfricaGuinea
AfricaGuinea-Bissau
EuropeGuyana
South AmericaHaiti
OceaniaHeard Island and McDonald Islands
South AmericaHonduras
AsiaHong Kong
EuropeHungary
EuropeIceland
AsiaIndia
AsiaIndonesia
AsiaIran
AsiaIraq
EuropeIreland
EuropeIsle of Man
AsiaIsrael
EuropeItaly
South AmericaJamaica
AsiaJapan
EuropeJersey
AsiaJordan
AsiaKazakhstan
AfricaKenya
OceaniaKiribati
AsiaKuwait
AsiaKyrgyzstan
AsiaLaos
EuropeLatvia
AsiaLebanon
AfricaLesotho
AfricaLiberia
AfricaLibya
EuropeLiechtenstein
EuropeLithuania
EuropeLuxembourg
AsiaMacau SAR China
EuropeMacedonia
AfricaMadagascar
AfricaMalawi
AsiaMalaysia
AsiaMaldives
AfricaMali
EuropeMalta
OceaniaMarshall Islands
EuropeMartinique
AfricaMauritania
AfricaMauritius
AfricaMayotte
EuropeMetropolitan France
South AmericaMexico
OceaniaMicronesia
EuropeMoldova
EuropeMonaco
AsiaMongolia
EuropeMontenegro
South AmericaMontserrat
AfricaMorocco
AfricaMozambique
AsiaMyanmar [Burma]
N/AN/A
AfricaNamibia
OceaniaNauru
AsiaNepal
EuropeNetherlands
South AmericaNetherlands Antilles
AsiaNeutral Zone
OceaniaNew Caledonia
OceaniaNew Zealand
South AmericaNicaragua
AfricaNiger
AfricaNigeria
OceaniaNiue
OceaniaNorfolk Island
AsiaNorth Korea
OceaniaNorthern Mariana Islands
EuropeNorway
AsiaOman
AsiaPakistan
OceaniaPalau
AsiaPalestinian Territories
South AmericaPanama
OceaniaPapua New Guinea
South AmericaParaguay
AsiaPeople's Democratic Republic of Yemen
South AmericaPeru
AsiaPhilippines
OceaniaPitcairn Islands
EuropePoland
EuropePortugal
North AmericaPuerto Rico
AsiaQatar
EuropeRomania
EuropeRussia
AfricaRwanda
AfricaRéunion
South AmericaSaint Barthélemy
AfricaSaint Helena
South AmericaSaint Kitts and Nevis
South AmericaSaint Lucia
South AmericaSaint Martin
South AmericaSaint Pierre and Miquelon
South AmericaSaint Vincent and the Grenadines
OceaniaSamoa
EuropeSan Marino
AsiaSaudi Arabia
AfricaSenegal
EuropeSerbia
EuropeSerbia and Montenegro
AfricaSeychelles
AfricaSierra Leone
AsiaSingapore
EuropeSlovakia
EuropeSlovenia
OceaniaSolomon Islands
AfricaSomalia
AfricaSouth Africa
OceaniaSouth Georgia and the South Sandwich Islands
AsiaSouth Korea
EuropeSpain
AsiaSri Lanka
AfricaSudan
South AmericaSuriname
EuropeSvalbard and Jan Mayen
AfricaSwaziland
EuropeSweden
EuropeSwitzerland
AsiaSyria
AfricaSão Tomé and Príncipe
AsiaTaiwan
AsiaTajikistan
AfricaTanzania
AsiaThailand
AsiaTimor-Leste
AfricaTogo
OceaniaTokelau
OceaniaTonga
South AmericaTrinidad and Tobago
AfricaTunisia
AsiaTurkey
AsiaTurkmenistan
South AmericaTurks and Caicos Islands
OceaniaTuvalu
OceaniaU.S. Minor Outlying Islands
North AmericaU.S. Virgin Islands
AfricaUganda
EuropeUkraine
EuropeUnion of Soviet Socialist Republics
AsiaUnited Arab Emirates
EuropeUnited Kingdom
North AmericaUnited States
South AmericaUruguay
AsiaUzbekistan
OceaniaVanuatu
EuropeVatican City
South AmericaVenezuela
AsiaVietnam
OceaniaWallis and Futuna
AfricaWestern Sahara
AsiaYemen
AfricaZambia
AfricaZimbabwe
EuropeÅland Islands

 

Sean
Community Champion
Community Champion

@adrien5555 You have Cyprus twice => once in Europe and once in Asia

@Sean : ho such a headache for such a small thing... many, many, thanks ❤️

Niels_NL
Advocate I
Advocate I

Trying applying a 'Many-to-One' relation from 'BusinessReports-table' to the 'Country-table'.

It looks like your current relation is the other way around.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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