从多个数据源创建过滤器

create filter from multiple data sources

我有多个包含城市、州和国家/地区信息的数据源。

例子-

Source 1:
ID      City        State       Country
12345   New York    New York    USA
12344   Cebu City               PHL
12232   Bengaluru   Karnataka   IND

Source 2:

ID      City    State    Country
12345   Dallas  Texas    USA
12344   London           UK

我想创建一个过滤器,以显示使用这两个数据库深入国家、州和城市的选项。由于采购问题很少,我无法合并来源。不确定是否可以像来自数据源的列的并集那样创建一个集合,以便能够显示将具有来自所有数据源的值的过滤器。

喜欢..

Country = USA, PHL, IND, UK 然后过滤州和城市等等。
有人可以告诉我如何实现吗? 我的数据源中的城市、州和国家/地区列是动态的

引自 Tableau 的联机帮助。

You can union your data to combine two or more tables by appending values (rows) from one table to another. To union your data in Tableau data source, the tables must come from the same connection.

If your data source supports union, the New Union option displays in the left pane of the data source page after you connect to your data.

在 Tableau Desktop 中很容易做到。

https://onlinehelp.tableau.com/current/pro/desktop/en-us/union.html