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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
CHealy
Frequent Visitor

Creating a new table from a master table

I am looking to create a table from another table. The master table has a column with several questions for a specific ID and a second column with the reponse. The response is in several data types ( text, dates and numbers). The questions are repeated for each distinct ID but not repeated multiple times for an ID. So Q1 is asked only once for aaa and bbb. There are also to many questions to convert this from long to wide. 

CHealy_0-1700489117735.png

I am looking to create a second table that has the distinct ID and the response to select questions as the rows and the columns being the ID, and the questions I I need the responses to. 

CHealy_1-1700489280910.png

I have tried several methods and failed each time. The most I can do is create a table with the ID and one of the questions and I would like to avoid having to make multiple tables like this. 

 

Any help would be appriciated. 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @CHealy 

Please follow these steps:

  1.        split column

vyifanwmsft_0-1700536974951.png

 

vyifanwmsft_1-1700536974953.png

  1.         return desktop,create a matrix.

vyifanwmsft_2-1700537018725.png

  1.        Off column subtotals , row subtotals. 
    vyifanwmsft_5-1700537282529.png

     

  2.        Final output

vyifanwmsft_3-1700537063240.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sorry this is not what I am trying to do. Let me see if I can explain a little more. 

I have columns for ID, questions, reponses, and several columns of additional data. I have way to many questions to make a table where I pivot the data from long to wide. 

I would like to make a table where I have one row for each ID. A column for the first questions I want to look at and the data in that column be the response for that question. Then another column for a second question with its corresponding data And so on for a couple of questions but NOT all the questions. I also do not need this to be a table on the display but a data table that I can use as a reference link to other data tables. (something that I can see in the table view and manipulate, along with use in the model view to make relationships)

 

Currently I am able to make an addtional table for one question and the corresponding response, but I cannot add in addtional columns for the other questions I am looking at. I would like to avoid making multiple tables for each question I would need to look at. 

ID Q1- dateQ2- nameQ3- locationQ6- something else
First IDDate for 1Name for 1 Location for 1Response for 1
Second IDDate for 2Name for 2 Location for 2Response for 2 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.