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
davfra
Regular Visitor

Display of the entry selected in the matrix visual as the title of another table.

Hello, everybody,

have a matrix visual and a table in a report. Both should interact with each other as follows:

When I click on a row in the matrix visual, the title of the table should be adjusted according to the row selected in the matrix visual.

For example:
If I click on "Michael" in the matrix visual, the title of the table should be changed to "Michael".

 

Unbenannt.PNG

Does anyone know how I can solve this problem? Maybe with a DAX expression or a new column?

Enclosed is the sample report:
https://www.dropbox.com/s/6sf4dooy7b5rjuz/pbifile.pbix?dl=0

Thanks for your help.

 

davfra

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @davfra

 

You may try below measure:

Title =
IF (
    ISFILTERED ( 'Hierarchy'[Level3] )
        && MAX ( 'Hierarchy'[Level3] ) <> BLANK (),
    MAX ( 'Hierarchy'[Level3] ),
    IF (
        ISFILTERED ( 'Hierarchy'[Level2] ),
        MAX ( 'Hierarchy'[Level2] ),
        IF ( ISFILTERED ( 'Hierarchy'[Level1] ), MAX ( 'Hierarchy'[Level1] ), "Title" )
    )
)

Regards,

Cherie

 

Community Support Team _ Cherie Chen
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

7 REPLIES 7
v-cherch-msft
Employee
Employee

Hi @davfra

 

You may try below measure:

Title =
IF (
    ISFILTERED ( 'Hierarchy'[Level3] )
        && MAX ( 'Hierarchy'[Level3] ) <> BLANK (),
    MAX ( 'Hierarchy'[Level3] ),
    IF (
        ISFILTERED ( 'Hierarchy'[Level2] ),
        MAX ( 'Hierarchy'[Level2] ),
        IF ( ISFILTERED ( 'Hierarchy'[Level1] ), MAX ( 'Hierarchy'[Level1] ), "Title" )
    )
)

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-cherch-msft,

 

thank you, your solution worked!

 

Regards

 

Frank

 

 

Greg_Deckler
Super User
Super User

You can use a Card visual with a measure as its value. Like this Quick Measure:

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer...


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hello @Greg_Deckler

 


thank you for your answer.

I also thought about using a row card and an additional measure.

However, I don't know how to retrieve the selected row from my hierarchy in my DAX-Measure.


Regards


Frank

Hi @davfra

 

You may create a measure as below. Attached the sample file. Here is the article for your reference.

Title =
IF (
    ISFILTERED ( 'Hierarchy'[Level1] ),
    CONCATENATEX ( VALUES ( 'Hierarchy'[Level2] ), 'Hierarchy'[Level2], "," ),
    "Title"
)

Regards,
Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-cherch-msft


thank you for your answer.

The DAX-Measure does not quite deliver the desired result.

If I click on an entry in the matrix on the second hierarchy level, the result is correct, but as soon as I click on a name in the first hierarchy level, I get an enumeration of the children. However, I only want to display the name clicked in the matrix (e.g. Annabel). (Of course, this should also work on the third hierarchy level.)

I also read the article, but it didn't tell me how to solve my problem with a hierarchy.

Thanks for your support.

greetings
davfra

Seems like you could just use MAX to grab the single value that is selected in the matrix.

@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.