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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ltice59
Frequent Visitor

Comment forcer une carte sur la France ?

Bonjour,

 

J'ai une liste de plusieurs structures que je voudrais visualiser dans une carto mais certains codes postaux sont détectés aux USA et d'autres pays au lieu d'être localisés en France.

Comment puis-je faire pour forcer Power BI de reconnaitre ces CP comme des CP français ?

Merci d'avance pour votre aide

2 REPLIES 2
Ltice59
Frequent Visitor

Bonjour,

 

Merci pour votre retour

Mais cela veut-il dire que je dois lister tous les codes postaux ?

Si c'est le cas cela ne va pas m'être possible car mon fichier fait plusieurs milliers de lignes.

En voici en extrait ci-dessous

 

Merci beaucoup pour votre aide

Cordialement.

CP
01300
01150
03569
56876
75009
89067
98701
43200
v-henryk-mstf
Community Support
Community Support

Hi @Ltice59 ,

 

You can try to create specific formulas to make further judgments on the cp field, and set its region to France when the conditions are met.
Refer to the following formula

Country =
IF ( 'Table'[CP] IN { "F_a", "F_b", "F_c", "F_d" }, "France", "Other country" )

vhenrykmstf_0-1669282169218.png

 

If the problem is still not resolved, please provide test data and excepted result screenshoot. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.