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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
kongyuancn
Helper II
Helper II

context in Tooltip page

Hello all,

I met a context issue in Tooltip page.

Here is my data table

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcjRU0lFyAhHOhkqxOkABI7iAEUTAGF0FWIsRkgojuIAhkhaYilgA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"A", type text}, {"B", type text}, {"C", type text}})
in
    #"Changed Type"

Which looks like:

kongyuancn_0-1665306915369.png

And I create a slicer:

kongyuancn_1-1665306996181.png

A also created a measure:

selected_A = CALCULATE(CONCATENATEX('Table', [A], ","), ALLSELECTED())

which shows all selected in slicer.

Which shows perfect:

kongyuancn_2-1665307099070.png

Then I created a matrix:

kongyuancn_3-1665307136201.png

and it looks like:

kongyuancn_4-1665307158823.png

seems good.

 

Now I created a tooltip page which include this measure:

kongyuancn_5-1665307225271.png

let matrix use this tooltip page. 

 

kongyuancn_6-1665307289963.png

 

Now in tooltip it only shows "A2 A2", not "A1,A1,A2,A2". Can any one help to let it show "A1,A1,A2,A2"?

 

 

Thanks in advance.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@kongyuancn Agree with @Arkan_Hazm_ but, it can be done by adding a slicer table and this measure. PBIX is attached below signature.

selected_A1 = 
    VAR __Category = MAX('Table'[A])
    VAR __Values = DISTINCT('Slicer'[A])
RETURN
    IF(__Category IN __Values,
        CONCATENATEX(FILTER(ALL('Table'), [A] IN DISTINCT(Slicer[A])),[A], ","),
        BLANK()
    )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@kongyuancn Agree with @Arkan_Hazm_ but, it can be done by adding a slicer table and this measure. PBIX is attached below signature.

selected_A1 = 
    VAR __Category = MAX('Table'[A])
    VAR __Values = DISTINCT('Slicer'[A])
RETURN
    IF(__Category IN __Values,
        CONCATENATEX(FILTER(ALL('Table'), [A] IN DISTINCT(Slicer[A])),[A], ","),
        BLANK()
    )


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Arkan_Hazm_
Frequent Visitor

I think you only see "A2 A2" because u hovering A2 column

Better to explain what you use this for?

Is this only for zooming the value ?

Hi @Arkan_Hazm_ I just want to show the results are different for measure in matrix and in tooltip

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors