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
pey
Frequent Visitor

Output table with sub-category

Hi All,

 

I am trying to build a table on GDP breakdown for the US. My table in excel is formatted in such a way that we can easily see the relationship between each column (e.g. Goods is a main category consisting of durable and non-durable goods). How can I do this in power BI without having to number them in ascending order (e.g. 1.0 Goods, 1.1 Durable, 1.2 Non-durable).

 

pey_0-1651500326545.png

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @pey ,

According to your description, taking the first two categories as an example, I create a table.

vkalyjmsft_0-1651816665524.png

In a matrix visual, put all categorie columns in the Rows and all date columns in the Values, expand the rows, get this:

vkalyjmsft_1-1651816752945.png

If you want all the dates in one column like below, you can select all date columns and unpivot them in Power Query.

vkalyjmsft_2-1651816984284.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @pey ,

According to your description, taking the first two categories as an example, I create a table.

vkalyjmsft_0-1651816665524.png

In a matrix visual, put all categorie columns in the Rows and all date columns in the Values, expand the rows, get this:

vkalyjmsft_1-1651816752945.png

If you want all the dates in one column like below, you can select all date columns and unpivot them in Power Query.

vkalyjmsft_2-1651816984284.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

amitchandak
Super User
Super User

@pey , Need more info. But calculation group of analyze in excel can help

 

Power bi Excel for P&L , add in app
Curbal
https://www.youtube.com/watch?v=IISYzTaIyu4
Guyinacube
https://www.youtube.com/watch?v=1yJnmZRTNZg

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.