Forum Discussion

Iaguas's avatar
Iaguas
Frequent Visitor
1 year ago
Solved

Multiple lines in line graph based on two multiselect slicers

Hello everyone,

I need to make a dynamic line chart with multiple lines based on two or more multi-select slicers. I know I can do it with one multi-select slicer by adding my data in the legend and filter. And I also know I can make measures with the possibilities that filters can create to show and hide the lines based on the multi-select slicers. But I need to know if I can make the multi-line chart based on two or more multi-select slicers without creating too many measures.

 

I am new to Power BI and any help would be greatly appreciated.

 

Thank you very much.

  • Anonymous's avatar
    Anonymous
    1 year ago

    Thanks for the reply from lbendlin.

     

    Hi Iaguas ,

     

    Please try the following steps:

     

    1.Create a new column.

     

     

    Segment&State = 'Table'[Segment]&"&"&'Table'[State]

     

     

     

    2.Create a line chart and use the column created as legend.

     

    3.Result:

     

     

    Best Regards,
    Zhu

     

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

     

8 Replies