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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.