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
chintanp
New Member

Plot two columns as line chart

I have some battery cycling data. Of interest is the current and voltage value wrt time. These are three separate columns in my table. I want to plot Current vs Time and Voltage vs Time. 

 

I tried the "Scatter Chart" option and "Line Chart" option, however, it shows me the "Count of Current" instead of "Current". I tried adding the "Current" and "Time" to "Axis" and "Value" tabs without success.

 

This used to be very simple in Excel. The reason I am using Power BI is because I have many rows (millions).

 

Thanks 

Chintan Pathak 

 

 

 

7 REPLIES 7
vanessafvg
Super User
Super User

@chintanp is it possible to share what your data  looks like?

 

and what you expect it to be, ie. show a screenshot of excel

 

so what you saying is you dont want current to be aggregated and you want to view it with a date?

 

do you have a date table?

secondly when you say its not working, what exactly is the problem?  a screenshot to get a better understand will help here

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




@vanessafvg : Thank you for your reply. 

 

My data looks like this: 

table_snap.PNG

 

Fields, test time (sec), current, voltage have been converted to "Decimal number" in Power BI. 

 

The graph that I want to see is simply: 

 

graph_V vs t.PNG

 

The X-axis has the test-time (sec) and Y-axis has Voltage, both are indivuidual values in separated columns in the same table.  

chintanp
New Member

I have some battery cycling data. Of interest is the current and voltage value wrt time. These are three separate columns in my table. I want to plot Current vs Time and Voltage vs Time. 

 

I tried the "Scatter Chart" option and "Line Chart" option, however, it shows me the "Count of Current" instead of "Current". I tried adding the "Current" and "Time" to "Axis" and "Value" tabs without success.

 

This used to be very simple in Excel. The reason I am using Power BI is because I have many rows (millions).

 

Thanks 

Chintan Pathak 

 

 

 

@chintanp

 

Hi Chintan Pathak,

 

Would you like it as the picture showed? You can use "Sum" if there is no duplicates in "Time".How to create a scatter-line chart from data from two columns.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

 

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

Nope, not 50 or 100 or Sum() on the Y-axis. I need the voltage value, i.e "somewhere between 2.5 volts" and keeps repeating, so like a periodic process. 

 

I don't think I can explain it any better. Maybe Power Bi is not a tool for scientific research. 

Hi @chintanp,

 

Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a help to the others.

 

Best Regards!
Dale

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

Hi @chintanp,

 

You have explained very clear. I found the difference of handling duplicates between Excel and Power BI. Excel keeps all the records. (at least in the line chart). While Power BI remove duplicates. I think you could try line chart in Power BI. How to create a scatter-line chart from data from two columns .jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

 

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

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.