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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Show Two Lines on the same Chart from same Column in Power BI Desktop

I was trying to show two values from a same column on the same Lines Chart, but cant find a simple way to do it.

I have a Table like this:

DateTeamValue

01/02/2023Team 10
03/02/2023Team 130
11/02/2023Team 145
15/02/2023Team 115
02/02/2023Team 26
05/02/2023Team 218
11/02/2023Team 20
16/02/2023Team 237

 

I'm trying to show Team 1 and Team 2 in two different Lines on the chart, and on X axis the Dates (and add a slide). It looks like this:

SantiMe_0-1691757764051.png

If I add a filter it shows only one, and the only way I found to solve it is create two New Columns in Power Query (the first only shows the Values from Team 1 and the Second only from Team 2).

 

Is there another way to solve it? 

 

Thanks

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can achieve your goals in 2 ways :

1. just put your team to a legend :

Ritaf1983_0-1691899175445.png

 

 

 


2 create measures for every team, like :

Total team 1 = CALCULATE(sum('Table'[Value]),'Table'[Team]= "team 1")
Total team 2 = CALCULATE(sum('Table'[Value]),'Table'[Team]= "team 2")
Ritaf1983_0-1691898028912.png

and than put both of your measures on Y axis:

Ritaf1983_1-1691898072116.png

Link to the sample file 

 

Please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

What happens when you drag Team to the legend?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Ritaf1983
Super User
Super User

Hi @Anonymous 
You can achieve your goals in 2 ways :

1. just put your team to a legend :

Ritaf1983_0-1691899175445.png

 

 

 


2 create measures for every team, like :

Total team 1 = CALCULATE(sum('Table'[Value]),'Table'[Team]= "team 1")
Total team 2 = CALCULATE(sum('Table'[Value]),'Table'[Team]= "team 2")
Ritaf1983_0-1691898028912.png

and than put both of your measures on Y axis:

Ritaf1983_1-1691898072116.png

Link to the sample file 

 

Please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors