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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors