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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.