多个国家的邮政编码

Postalcode for multiple countries

有一列混合了德国(5 位)和奥地利(4 位)邮政编码。我怎样才能让 Tableau 正确理解两者?

该专栏的内容类似于

postal-code
53173
99848
1080
1030

我为区分国家/地区的第二列分配了地理角色:

country-code
DE
DE
AT
AT

我使用了您提供的数据,Tableau 正确识别它们没有问题。

您可能需要为每个字段专门设置 Geographic role,但仅此而已。

尼卡鲁斯说的。

有了这个数据:

postal-code country-code
53173       DE
99848       DE
1080        AT
1030        AT

您可以这样做(只需确保更改邮政编码的地理角色,如下所示):