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
Anonymous
Not applicable

How would I build a GDP value by Year table with this excel data set?

This is what my Excel data table + Power BI fields (right) looks like:

jDL3SUR.png (2500×1042)

 

I need it to look like this: 

7QQrmQB

 

Any ideas on how I would format this? I know I have to use a stacked bar chart, but it ends up looking like this:

 

iF1Cw7d

1 ACCEPTED SOLUTION

@Anonymous ,

 

You need to unpivot the year columns and then drag the generated attribute columns to the X-axis field.

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

3 REPLIES 3
amitchandak
Super User
Super User

The best way would have been transposed data.

You can also try Clustered Bar Chart.

Also set display unit property to Thousand. Seem like it is set to Million

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
Anonymous
Not applicable

I can't transpose the Data. The Excel spreadsheet automatically updates and updates data from a database. I tried transposing on Power BI, and half the data disappears when I do so...

Any other ideas or ways I could format it within DAX?

@Anonymous ,

 

You need to unpivot the year columns and then drag the generated attribute columns to the X-axis field.

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

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.