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.
Hello all,
I may be missing something/not looking hard enough, but I cannot figure out a way to do this. I have 3 columns as shown in the image below that I want to combine into one long column.
Ideally I would like to do this in the query editor without using calculated columns or creating any new tables, but this is not a nessecity. I can't find a solution to this anywhere and was wondering if any of you knew.
Thanks.
Solved! Go to Solution.
If you don't need the null values, then you can unpivot all columns:
let Source = Input, #"Unpivoted Only Selected Columns" = Table.Unpivot(Source, {"Column1", "Column2", "Column3"}, "Attribute", "Conference Type"), #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Only Selected Columns",{"Attribute"}) in #"Removed Columns"
If you want to keep the null values, then you can convert the table into columns (lists), combine these lists and convert the result back to a table:
let Source = Input, Result = Table.FromColumns({List.Combine(Table.ToColumns(Source))},type table[#"Conference Type" = text]) in Result
If you don't need the null values, then you can unpivot all columns:
let Source = Input, #"Unpivoted Only Selected Columns" = Table.Unpivot(Source, {"Column1", "Column2", "Column3"}, "Attribute", "Conference Type"), #"Removed Columns" = Table.RemoveColumns(#"Unpivoted Only Selected Columns",{"Attribute"}) in #"Removed Columns"
If you want to keep the null values, then you can convert the table into columns (lists), combine these lists and convert the result back to a table:
let Source = Input, Result = Table.FromColumns({List.Combine(Table.ToColumns(Source))},type table[#"Conference Type" = text]) in Result
Works perfectly, thanks!
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |