Forum Discussion

Copycat's avatar
Copycat
Frequent Visitor
3 years ago
Solved

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.

  • 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.

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

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

    Get the correct result:

    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.

     

     

     

1 Reply

  • 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.

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

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

    Get the correct result:

    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.