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

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.

Reply
Anonymous
Not applicable

listing two columns under one sub column

For a table like below

Name

Physics

Maths

Vikas

88

90

Aakash

85

97

Ravi

89

91

I want Both Physics and Math to be under one column as “ Subject” as sub column. How can it be done?

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Yes, you can achieve this by adding a new table like below. And other parts are like @RajatJaiswal's solution. Please check out the demo in the attachment.

Class                                                                   Course

Subject Physics
Subject Maths

listing_two_columns_under_one_sub_column

 

Best Regards,

Dale

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

View solution in original post

5 REPLIES 5
RajatJaiswal
Frequent Visitor

Use unpivot feature 

= Table.UnpivotOtherColumns(#"Changed Type", {"Name"}, "Attribute", "Value")unpivot.png

Anonymous
Not applicable

Hi Rajat , somehwat like this:

 

 

Capture.JPG 

 

 Is this possible?

@Anonymous

If I understand correctly after reviewing your picture. I don't think it is possible. As it is columnar data so column physics & Maths should be different but if you want to show a report in power BI then we can think of it. Please, share what exactly you need and is it report view or data source table.

Anonymous
Not applicable

yes if it is possible to show report in powerBI and aslo if  it is  possible to get that as view in tabular form in report? as in visualization?

 

Hi @Anonymous,

 

Yes, you can achieve this by adding a new table like below. And other parts are like @RajatJaiswal's solution. Please check out the demo in the attachment.

Class                                                                   Course

Subject Physics
Subject Maths

listing_two_columns_under_one_sub_column

 

Best Regards,

Dale

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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