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
Anonymous
Not applicable

Data depends on highlight on line chart

Thank you for taking a look. 
I have line chart, each line of which is a measure (Meas Upside, Downside and etc). I can select, highlight one of them (on the attached image it is green one). Question is, can I show value = highlighted measure divided by 3 , in the bottom chart (Meas_Test). Values will be changed depends on the highlight on line chart.
Bs9UIo4

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

I create a simple example. Please check:

 

1. Create another table with your measure names by "Enter data".

enterdata.JPG

 

2. Combine your multiple measures into one.

 

 

Measure =
SWITCH (
    SELECTEDVALUE ( MeasureName[MeasureName] ),
    "Sum Measure", [Sum Measure],
    "Avg Measure", [Avg Measure],
    [Sum Measure] // the default measure when nothing selected
)

 

 

 

3. Create a line chart.

measure.JPG

 

4. Create a column chart and keep "Title" off.

column.JPG

column 2.JPG

 

5. Create a title measure and put it into a card visual, keep "Category" off, adjust font size.

 

 

Title = 
VAR Measure_ =
    SELECTEDVALUE ( MeasureName[MeasureName] )
RETURN
    IF ( ISBLANK ( Measure_ ), "Sum Measure by Date", Measure_ & " by Date" )

 

 

 title.JPG

title2.JPG

 

6. Group the card visual and the column visual.

(PS: I do this step because title function is not working with "Highlight" in this column chart based on my test.)

group.gif

 

7. Test.

test.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Icey, it is beautiful, thank you, worked for me.

Anonymous
Not applicable

Thank you for such a detailed reply, sir @Icey. It looks very optimistic I will check it out and come back to you later. 

Icey
Community Support
Community Support

Hi @Anonymous ,

 

I create a simple example. Please check:

 

1. Create another table with your measure names by "Enter data".

enterdata.JPG

 

2. Combine your multiple measures into one.

 

 

Measure =
SWITCH (
    SELECTEDVALUE ( MeasureName[MeasureName] ),
    "Sum Measure", [Sum Measure],
    "Avg Measure", [Avg Measure],
    [Sum Measure] // the default measure when nothing selected
)

 

 

 

3. Create a line chart.

measure.JPG

 

4. Create a column chart and keep "Title" off.

column.JPG

column 2.JPG

 

5. Create a title measure and put it into a card visual, keep "Category" off, adjust font size.

 

 

Title = 
VAR Measure_ =
    SELECTEDVALUE ( MeasureName[MeasureName] )
RETURN
    IF ( ISBLANK ( Measure_ ), "Sum Measure by Date", Measure_ & " by Date" )

 

 

 title.JPG

title2.JPG

 

6. Group the card visual and the column visual.

(PS: I do this step because title function is not working with "Highlight" in this column chart based on my test.)

group.gif

 

7. Test.

test.gif

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

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.