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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
alexzhao
Regular Visitor

Line charts to automatically show all variables after slicer selection

Hi Everyone,

 

Currently I have a dataset as below:

DateSegmentVariableValue
D1Av10.5
D2Av10.4
D3Av10.6
D1Av20.2
D2Av20.3
D3Av20.5
D1Av30.6
D2Av30.5
D3Av30.6
D1Bv40.5
D2Bv40.4
D3Bv40.6
D1Bv50.2
D2Bv50.3
D3Bv50.5
D1Bv60.6
D2Bv60.5
D3Bv60.6

I created a slicer that filters the Segment (A or B). Each Segment will have 3 variables.

 

Here is my question:

Is it possible to build 3 line charts (Date is x-asix, Value is y-axis), each chart shows 1 of the variables for the selected Segment, order does not matter?

If I select Segment A in the slicer, the 3 line charts will show V1, V2 , V3.

If I select Segment B in the slicer, the 3 line charts will change to V4, V5, V6.

 

Hence, the only thing I need to change is the slicer for Segment. I do not want to manually select which variable to show in the line chart.

 

Thank you!

Alex

1 ACCEPTED SOLUTION

Hi @alexzhao ,

 

If you add the variable has legend on your chart that selection will be done directly based on the options you are selecting, even if you do not use the legend the data that is presented is only concerning the data for that segment since the slicer filters out only those rows and respective values.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi @alexzhao ,

 

Not sure if I understand your question properly, but you can add to any visual a filter and then change the options has you need without being dependent on a slicer, this will force that visual to always be based on the varuable in this case:

MFelix_0-1732638085190.png

This is not your example but just highlithing the filter pane for your reference.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix ,

 

Thanks for the response! I edited my post to be more clear on my objective.

 

The goal is to let 3 line charts get automatically updated to show the variables for the selected segment. Since different segment contains different variables, after I select another segment in the slicer, I want the charts to automatically update and reflect the corresponding variables for the selected segment. Thanks.

Hi @alexzhao ,

 

If you add the variable has legend on your chart that selection will be done directly based on the options you are selecting, even if you do not use the legend the data that is presented is only concerning the data for that segment since the slicer filters out only those rows and respective values.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.