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.
I have a table that has 3 columns PlaceOfOrigin, PlaOfDelivery & UltimateDestinations. Values in these columns are US States. There are other Columns as well in total 7
How can I create a new Table for a filter that has the list of All the Unique states from these three columns?
Solved! Go to Solution.
Hi nssidhu,
maybe the UNION in combination with VALUES will help you.
=UNION(VALUES([Origin]),VALUES([Delivery]),VALUES([Destination]))
This should bring you the "virtual" table for further processing. e.g. Filter.
Hi nssidhu,
maybe the UNION in combination with VALUES will help you.
=UNION(VALUES([Origin]),VALUES([Delivery]),VALUES([Destination]))
This should bring you the "virtual" table for further processing. e.g. Filter.
A Power Query (M) solution:
let Source = Input, TableWithUniqueValues = Table.FromList( List.Distinct(Source[PlaceOfOrigin]&Source[PlaOfDelivery]&Source[UltimateDestinations]), null, type table[State = text]) in TableWithUniqueValues
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |