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

Dynamic Line Chart with Wide Table

Hello,

 

I have a wide data table (1 row per unique ID and hundreds of numerical and text columns for each row) and I am trying to create line chart where the y-axis can change depending on slicer selection. I have created a parameter with the names of the columns I want to use for this chart but I cannot seem to figure out how to actually create a line chart using this. I want the x-axis to be the unique ID increasing from left to right. Here is an example data table:

 

[Data]

Batch NumberDoMMeasure 1 Measure 2Text 1Text 2Measure 3
A0011/12/2023905555YFail1.2
A0022/20/2023854560YSuccess3.6
A0033/12/2023939000NSuccess4.4
B0014/25/2023764000NSuccess2.2

 

And the Parameter Table that was created:

 

[Parameters]

Measure Parameter
Measure 1
Measure 2
Measure 3

 

I've tried placing Batch Number in the x-axis and the Measure Parameter in the y-axis to no avail, and not sure where to go from here. I have done successfully in the past in Tableau and Spotfire without having to transform the entire spreadsheet into a long table format. Is this possible in the current table format?

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Janaya1 ,

According to your requirements, I create a table and a parameter.

vyilongmsft_0-1710227588191.png

Then I create a slicer and add the Batch Number in the slicer.

vyilongmsft_1-1710227533134.png

 

Finally we can select when we put Batch Number in x-axis and Measures in y-axis.

vyilongmsft_2-1710227533369.png

vyilongmsft_0-1710227681839.png

 

 

 

Best Regards

Yilong Zhou

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

Sorry it took me awhile to respond, I was trying to get my company to update the Power BI version in the portal to be able to open the file you sent. That's not quite what I'm looking for. I want all of the "Batch Number" on the x-axis to be there, and I want the y-axis to show one variable at a time in a line chart and then I could select from a dropdown to change the y-axis variable. I can't seem to attach a file to my replies

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