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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vbourbeau
Resolver II
Resolver II

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.

1 ACCEPTED SOLUTION

 

@vbourbeau 

 

Ok, try with this:

 

Step 1: Create a disconnected table with Temperature types.

 

1.png

 

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

 

2.png




Lima - Peru

View solution in original post

5 REPLIES 5
Jorgast
Resolver II
Resolver II

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

No it's not a measure.

 

I don't have any legend in a slicer?2019-02-19 11_08_37-Indicateurs Modern 0.2 - Power BI Desktop.png

 

@vbourbeau 

 

Ok, try with this:

 

Step 1: Create a disconnected table with Temperature types.

 

1.png

 

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

 

2.png




Lima - Peru

Wow thank you I'll remind this kind of twist 🙂

 

Vvelarde
Community Champion
Community Champion

@vbourbeau 

 

Hi, your line are measures?

 

Regards

 

Victor




Lima - Peru

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.