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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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

Hi @Anonymous 

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

Hi @Anonymous 

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. 

Anonymous
Not applicable

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

 

amitchandak
Super User
Super User

@Anonymous , 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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Is there any market visual that can achieve this

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors