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

Multiple line charts

So how  do i generate multiple line charts based on each content of a particular table ie. when i select each row of the table automatically a line graph corresponding to the row should be generated and similarly if i select 2 rows of the table there should be 2 line charts and so on based on the number of selections made on the table . 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @Clerin_Kuriakos 

In addition to  

Category = VALUES('Table'[Category])

Measure = 
VAR _SelectCategory = ALLSELECTED(Category[Category])
Return
IF(ISFILTERED(Category[Category]),SUMX(FILTER('Table','Table'[Category] in _SelectCategory),'Table'[Value]),BLANK())

Build a line chart and result is as below.

By default:

1.png

Select A:2.png

Select A & B:

3.png

If this reply still couldn't solve your problem, please show me your table and the result you want.

Or you can share your pbix file with me by Onedrive for Business.

You can download the pbix file from this link: Multiple line charts

 

 

Best Regards,

Rico Zhou

 

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

View solution in original post

4 REPLIES 4
v-rzhou-msft
Community Support
Community Support

Hi @Clerin_Kuriakos 

In addition to  

Category = VALUES('Table'[Category])

Measure = 
VAR _SelectCategory = ALLSELECTED(Category[Category])
Return
IF(ISFILTERED(Category[Category]),SUMX(FILTER('Table','Table'[Category] in _SelectCategory),'Table'[Value]),BLANK())

Build a line chart and result is as below.

By default:

1.png

Select A:2.png

Select A & B:

3.png

If this reply still couldn't solve your problem, please show me your table and the result you want.

Or you can share your pbix file with me by Onedrive for Business.

You can download the pbix file from this link: Multiple line charts

 

 

Best Regards,

Rico Zhou

 

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

Clerin_Kuriakos
New Member

I tried small multiple line chart visual in the market place but it didnt give me the required result

 

amitchandak
Super User
Super User

@Clerin_Kuriakos , I doubt any visual like that. If you use a legend line visual and the other table can filter legend.  Each legend will create one line

Is there any market visual that can achieve this

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.