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

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

Reply
CEllis
Resolver I
Resolver I

Table to show the same column multiple times but with different filters

Morning all,

 

I was hoping to see if anyone can give me some guidance, the desired outcome is to create a table from the source table but filter the subject.

 

It looks to be a pivot table up to the point I want to see all subjects going across the columns which is where I come unstuck.

 

I am not sure if this is even possible.

 

Any help greatly appreciated.

 

Source Table

NameGenderTypeClassPreviouseCurrentSubject
Name1FemaleNoClass1-16-62Subject1
Name1FemaleNoClass2-48-47Subject2
Name1FemaleNoClass3-71-50Subject3
Name2MaleYesClass1315Subject1
Name2MaleYesClass23-8Subject2
Name2MaleYesClass3-658Subject3
Name3FemaleNoClass13664Subject1
Name3FemaleNoClass2-21-21Subject2
Name3FemaleNoClass31368Subject3

 

Desired output table

   Subject1Subject2Subject3
NameGenderTypeClassPreviouseCurrentClassPreviouseCurrentClassPreviouseCurrent
Name1FemaleNoClass1-16-62Class2-48-47Class3-71-50
Name2MaleYesClass1315Class23-8Class3-658
Name3FemaleNoClass13664Class2-21-21Class31368

 

Many thanks

 

Chris

 

 

2 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@CEllis , Try pivot using below steps

Load your data into Power BI.

Transform Data:

Go to the "Home" tab and click on "Transform Data" to open the Power Query Editor.
Pivot the Data:

In the Power Query Editor, select the "Subject" column.
Go to the "Transform" tab and click on "Pivot Column".
In the "Values Column" dropdown, select "Class", "Previouse", and "Current".
Click "OK".
Adjust the Table:

The pivot operation will create new columns for each combination of "Subject" and the selected values ("Class", "Previouse", "Current").
Rename the columns as needed to match your desired output format.
Close and Apply:

Once you have the table in the desired format, click "Close & Apply" to load the transformed data back into Power BI.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

Many thanks @bhanu_gautam  got me on the right track.

 

If I select the columns then unpivot columns it gives the desired result I can work with.

 

CEllis_0-1726576188901.png

 

 

Many thanks

 

Chris

 

View solution in original post

3 REPLIES 3
bhanu_gautam
Super User
Super User

@CEllis , Try pivot using below steps

Load your data into Power BI.

Transform Data:

Go to the "Home" tab and click on "Transform Data" to open the Power Query Editor.
Pivot the Data:

In the Power Query Editor, select the "Subject" column.
Go to the "Transform" tab and click on "Pivot Column".
In the "Values Column" dropdown, select "Class", "Previouse", and "Current".
Click "OK".
Adjust the Table:

The pivot operation will create new columns for each combination of "Subject" and the selected values ("Class", "Previouse", "Current").
Rename the columns as needed to match your desired output format.
Close and Apply:

Once you have the table in the desired format, click "Close & Apply" to load the transformed data back into Power BI.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Many thanks @bhanu_gautam  got me on the right track.

 

If I select the columns then unpivot columns it gives the desired result I can work with.

 

CEllis_0-1726576188901.png

 

 

Many thanks

 

Chris

 

Hi @bhanu_gautam 

 

Thanks for the quick response.

 

I cant seem to select all 3 fields.

 

CEllis_0-1726571717342.png

 

 

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.

Top Solution Authors