Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
Hi guys,
I have a table with following columns:
Now, I want to create a line diagram with the years as x-axis to show the change of the price over the years.
My idea was to merge these columns into two columns "price" and "year", but I don't know how to do that.
Does someone of you have a solution how to handle this or even a more convenient approach to create the line diagram?
Best regards
Solved! Go to Solution.
@Anonymous
If possible share the pbix with dummy data, we can have a look and send you back.
Or you can check if numbers columns are in number format.
 
					
				
		
Hi @Anonymous,
I think unpivot column should suitable for your scenario, you can refer to the following link to know more about this.
If the above not help, can you please share a pbix file with some dummy data to test?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
@Anonymous
Select your all the number columns and Go to Transform in toolbar-- click Unpivot see below pic.
This will transform into two columns Attribute having column names, you can clean these to have year.
Second column you have your numbers.
Let me know if this solves.
No. No matter which columns I select to unpivot, I get errors in every cell.
@Anonymous
If possible share the pbix with dummy data, we can have a look and send you back.
Or you can check if numbers columns are in number format.
Hi! The columns were not in number format. After I changed it, it worked. Thank you!
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 80 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |