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

Need instances of unpivot colums for chart visual and pivot columns for table visual

I'm trying to create a chart visual and table visual from the same table in Excel. The problem is the chart requires to unpivot multiple columns to get the data to present correctly. When I do this, the table visual loses the multiple column heads since they're set as rows from unpivot. Is there a way to create two table instances in Power BI that draw from the same source?

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You could create multiple queries from the same source, but you could also use the unpivoted data format for both visuals. Instead of a table visual, you'd use a matrix visual to display the columns as you intend.

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

You could create multiple queries from the same source, but you could also use the unpivoted data format for both visuals. Instead of a table visual, you'd use a matrix visual to display the columns as you intend.

Thanks. I also figured out another way. Just create a duplicate table in Power Query (copy and paste table) and adjust pivot accordingly.

Yes, duplicating a query creates a new query from the same source with the same steps (which you can then modify as needed). I'd recommend unpivoting in general though.

Unpivoted was fine for the charts, but I needed to go back to the original format for the table visual.

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.

Top Solution Authors
Top Kudoed Authors