Forum Discussion
karoli_naa
6 years agoFrequent Visitor
Connect 2 columns in one
Hello! I have 3 tables (in each column a city with different data). I need to create a new column that will include all cities from 3 tables. For example, I have: Table1 - Cities1 Table2 - Cities...
- 6 years ago
Hello karoli_naa
You can create that new table like so.
Cities = DISTINCT ( UNION ( DISTINCT ( Table1[Cities] ), DISTINCT ( Table2[Cities] ), DISTINCT ( Table3[Cities] ) ) )You would go to modeling > new table and paste in this code to get a table called 'Cities'
jdbuchanan71
Super User
6 years agoHello karoli_naa
You can create that new table like so.
Cities =
DISTINCT (
UNION (
DISTINCT ( Table1[Cities] ),
DISTINCT ( Table2[Cities] ),
DISTINCT ( Table3[Cities] )
)
)
You would go to modeling > new table and paste in this code to get a table called 'Cities'