Forum Discussion

vbourbeau's avatar
vbourbeau
Resolver II
7 years ago
Solved

Dinamic line chart

Hi,

 

I have a line chart with 7 lines value on it. I want to add a segment filter or something else that allow my user to select the line to be visible on the line chart. Exemple he want line 2 and 3 only well the chart only show this lines...

 

Thank you.

  • Vvelarde's avatar
    Vvelarde
    7 years ago

     

    vbourbeau 

     

    Ok, try with this:

     

    Step 1: Create a disconnected table with Temperature types.

     

     

    Step 2: Insert in a slicer this column

     

    Step 3: Create a measure:

     

    ShowLine =
    SWITCH (
        SELECTEDVALUE ( Slicer[Column1] ),
        "A", SUM ( Table4[Column A] ),
        "B", SUM ( Table4[Column B] ),
        "C", SUM ( Table4[Column C] )
    )
    

    Step 4: Drag into values section of your chart. (Remove the others columns)

     

    Step 5: Drag the Column from disconnected table to Legend.

     

    Ready

     

5 Replies

  • Create a slicer and use the whatever column you are using for your "Legend" as your filter

    • vbourbeau's avatar
      vbourbeau
      Resolver II

      No it's not a measure.

       

      I don't have any legend in a slicer?

      • Vvelarde's avatar
        Vvelarde
        Community Champion

         

        vbourbeau 

         

        Ok, try with this:

         

        Step 1: Create a disconnected table with Temperature types.

         

         

        Step 2: Insert in a slicer this column

         

        Step 3: Create a measure:

         

        ShowLine =
        SWITCH (
            SELECTEDVALUE ( Slicer[Column1] ),
            "A", SUM ( Table4[Column A] ),
            "B", SUM ( Table4[Column B] ),
            "C", SUM ( Table4[Column C] )
        )
        

        Step 4: Drag into values section of your chart. (Remove the others columns)

         

        Step 5: Drag the Column from disconnected table to Legend.

         

        Ready