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
Anonymous
Not applicable

How to merge two line charts?

Hello! I have two tables. The first table hast two columns: timestamp and power being consumed over time. The second table has two columns too: timestamp and state of the device (consuming power =3, not consuming power =2). This means both tables relate to the same device. I want to create a graph with two line charts over time. But when I add time and value (twice) to the graph, one of them just stays at 0 the whole time. Any help?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi i tested it for you and believe you do everything right.

 

My quess is either there is no relationship between the 2 tables. In that case add the 2nd timestamp to Axis aswell. OR the values of Power consumption overtime are so high it looks like the 2's and 3's are all the same. 

 

I used these tables to test:

TimestampPower consumed
11
23
34
42
53
61
74
85
97
101

 and

TimestampState of device
12
23
32
42
53
63
72
83
92
103

 

Result

doubleline.png

if this is incorrect, please share some sample data i can correct my answer with. 

 

Goodluck! 🙂

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi i tested it for you and believe you do everything right.

 

My quess is either there is no relationship between the 2 tables. In that case add the 2nd timestamp to Axis aswell. OR the values of Power consumption overtime are so high it looks like the 2's and 3's are all the same. 

 

I used these tables to test:

TimestampPower consumed
11
23
34
42
53
61
74
85
97
101

 and

TimestampState of device
12
23
32
42
53
63
72
83
92
103

 

Result

doubleline.png

if this is incorrect, please share some sample data i can correct my answer with. 

 

Goodluck! 🙂

Anonymous
Not applicable

Hi! First of all, thanks a lot for your help! You are right, the problem is that the 3 and 2 look the same because the power values are so high. Do you know how I can add a second Y-Axis so that the 3 and the 2 are visible? Thanks!

Anonymous
Not applicable

you could use a bar + line chart for that. 

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.