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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PatrickNahayo
Frequent Visitor

Power pivot or dax calculated table to combine columns data and create new rows line chart viz

I need to have the data transformed in the following way, the first table shows how I'm receiving the information and the second show how the output table should be with the year and amounts for each product. 

PatrickNahayo_0-1682534736578.png

I should be able to do it for multiple product lines so that i can visualize the evolution of one or more products.
if there is a measure to visualize the information as below or any power pivot trick, i'm open to ideas to have the following outcome so that we see variations over years (AND THIS I DO NOT KNOW HOW TO DO WHEN DATA IS IN MULTIPLE COLUMNS)

PatrickNahayo_1-1682535051995.png

 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @PatrickNahayo ,

 

For this you need to unpivot the information based on the colunmns of the year.

MFelix_0-1682541421422.png

 

MFelix_1-1682541435030.png

Then you can remove the total sales column and use this new table on your chart directly.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

Thanks very much. I'll appreciate if you can share indepths articles about Pivots anad Unpivots stuff.

View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @PatrickNahayo ,

 

For this you need to unpivot the information based on the colunmns of the year.

MFelix_0-1682541421422.png

 

MFelix_1-1682541435030.png

Then you can remove the total sales column and use this new table on your chart directly.

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thanks very much. I'll appreciate if you can share indepths articles about Pivots anad Unpivots stuff.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors