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
mgramajo
Regular Visitor

Dinamic legend line chart

Hi everyone!

 

I have the following problem: I have a hierarchy with 2 levels, top level is "FACTORIES" and the next level is "MACHINES". Currently I have the data of the amount of minutes that each machine was not working on a given period of time so when I sum that data I get the time each factory wasn't working. I have 4 Factories and each one has a certain number of Machines, when I use FACTORIES on the legend of a line chart I get 4 lines as expected and if I use a slicer and select let's say "Factory 1" I get 1 line on the chart but what I want is to get one line for each Machine inside "Factory 1" and if I also select "Factory 2" I want for all the lines of the machines inside Factory 2 appear and so on. To sum up:

 

4 FACTORIES so we have a 4 options slicer ----> I select "Factory 1" 

Factory 1 has 10 machines ----> I want 10 lines on my line chart instead of one line that represents "Factory 1" 

 

Is this possible? Thanks in advance! 

1 ACCEPTED SOLUTION

Hello !

 

Thank you for your answer, I couldn't manage to do what I was asking but I as an alternative solution I use the drillthrough feature.


View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @mgramajo,

 

I don't think it is possible to do it directly via a Slicer. An alternative solution could be that using Drill Down feature to drill down one Factory at a time on your line chart to get a similar result. For more details about how to drill down in a visualization in Power BI, you can refer to this article. Smiley Happy

 

Regards

Hello !

 

Thank you for your answer, I couldn't manage to do what I was asking but I as an alternative solution I use the drillthrough feature.


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