Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
stanislav_dugas
Helper III
Helper III

Combining several columns and creating cascading structure

Hi Guys,

 

I am working on a problem i have. Hopefully someone can help me with it.

 

I created a unique new Table outof my main data source that looks like this. Value 1 and 2 are Meassures or i can change them to new Columns whichever is needed.

IDValue 1Value 2
1

10

15
22025
33035

 

Out of this i would like to create a cascaded structure like this.

IDValue
110
220
330
115
225
335

 

Is there any way how to do it?

Thx for any advice. 

1 ACCEPTED SOLUTION

@stanislav_dugas 

Actually the function you need (to avoid including other columns which ADDCOLUMNS does) is SELECTCOLUMNS. My apologies.

 

Here is the example:

Data.JPGNew Table.JPG





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

If you create the table in Power Query, all you have to do is unpivot both values columns





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Problem is I cant access this table in query editor since it was created as a new table by using Groupby function from the main data table.

@stanislav_dugas 

 

Ok. Try:

New table = 
VAR _table1 = ADDCOLUMNS(Table, "ID", Table [ID], "Value", Table [Value 1])
VAR _table2 = ADDCOLUMNS(Table, "ID", Table [ID], "Value" Table [Value 2])
RETURN
UNION(_table1, _table2)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






I slightly adjusted what you sent me to match my namings but i am getting this error.

 

stanislav_dugas_0-1607783070790.png

 

@stanislav_dugas 

Actually the function you need (to avoid including other columns which ADDCOLUMNS does) is SELECTCOLUMNS. My apologies.

 

Here is the example:

Data.JPGNew Table.JPG





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.