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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TBSST
Frequent Visitor

Combining Tables so two columns become one for a table

Hi All, 

 

I currently have multiple tables of survey data. One surevey have all questions, and then other surveys only have one part of the question, so only the relevant survey is provided to a client. In my report, i would like a table where i can have the survey specific score with the survey with all the questions in one column, as it is now, when i put the scores in a table, they appear in two different tables due to being on seperate surveys. 

Example:

Table 1    Table 2  Table 3  Table 3 
SurveyScore1Score 2Score3 SurveyScore1 Survey Score 2 Survey Score 3
1555 23 34 45
1624 26 35 46
1434 25 36 47
1343 23 37 44
1362 24 33 44
1433         
1525         
1638         
1447         

In the first table, i would like to only have have score 1 from both survey 1 and 2, with the option to filter to only look at survey 1 or 2 data (Which i have that part). Is there a DAX function that will allow me to have a table where score 1 data from table 1 and 2 to be under one column. (And the same for score 2 and 3). So the table would look like this:

Table  
SurveyScore 1
15
16
14
13
13
14
15
16
14
23
26
25
23
24

 

Thank you. 

1 REPLY 1
barritown
Super User
Super User

Hi @TBSST,

You would want to master the DAX function UNION and create a new table using it.

barritown_0-1693385602805.png

In plain text:

New Table = 
UNION ( 
    SELECTCOLUMNS ( Table1, "Survey", [Survey], "Score1", [Score1] ),
    Table2 )

 

Best Regards,

Alexander

My YouTube vlog in English

My YouTube vlog in Russian

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.