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
Copycat
Frequent Visitor

Static tooltip value

Good day beautiful people,

 

Currently I have three columns:

DateScoreClass
1/1/2022 59% A
5/5/2022 99% B

 

And it goes down to x number of rows. I have a graph where I present a score for each class per each week / month.

What I would like to do is a static score value to be presented in tooltip as "Primary Score". By that I mean to get the very 1st value from Score column and show it in a tooltip for every other single value, even if Date filter won't include this date.


For example:

1/1/2022 45%
2/2/2022 56%
3/3/2022 88%
4/4/2022 14%
5/5/2022 38%
6/6/2022 44%
7/7/2022 36%

In this case, for values from 1/1/2022 to 7/7/2022 I would like to see 45% in a tooltip for every single one. Also, I would like to see this 45% even if slicer is on 4/4/2022 - 7/7/2022.

 

I would appriciate any help.

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Copycat ,

According to your description, here's my solution.

Measure =
VAR _MIN =
    MINX (
        FILTER ( ALL ( 'Table' ), 'Table'[Class] = MAX ( 'Table'[Class] ) ),
        'Table'[Date]
    )
RETURN
    MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Date] = _MIN ), 'Table'[Score] )

Then create a new page, in the page formatting pane, turn on "Allow use as tooltip", and select custom cavans, then set the suitable height and width.

vkalyjmsft_0-1669692493475.png

Then create a table visual in the page and put the measure in the visual.

vkalyjmsft_1-1669692618848.png

In the original page, turn on the Tooltips option and select Report page, select Page2.

vkalyjmsft_2-1669692671634.png

Get the correct result:

vkalyjmsft_3-1669692741642.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

 

 

View solution in original post

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @Copycat ,

According to your description, here's my solution.

Measure =
VAR _MIN =
    MINX (
        FILTER ( ALL ( 'Table' ), 'Table'[Class] = MAX ( 'Table'[Class] ) ),
        'Table'[Date]
    )
RETURN
    MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Date] = _MIN ), 'Table'[Score] )

Then create a new page, in the page formatting pane, turn on "Allow use as tooltip", and select custom cavans, then set the suitable height and width.

vkalyjmsft_0-1669692493475.png

Then create a table visual in the page and put the measure in the visual.

vkalyjmsft_1-1669692618848.png

In the original page, turn on the Tooltips option and select Report page, select Page2.

vkalyjmsft_2-1669692671634.png

Get the correct result:

vkalyjmsft_3-1669692741642.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

 

 

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.