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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
AA622
Helper II
Helper II

Card Visualization using a Matrix and measure

Hello

 

So I have a card visualization that displays the "Account name" when selected in a matrix. But if you drill down the matrix also displays invoice number. FYI the matrix only has 2 rows; Account name and Invoice number.

 

Currently I have the card using this measure but it only works for the first row, Account name:

FlagsSelected = IF ( ISFILTERED ('Table'[AccountName]),
CONCATENATEX(ALLSELECTED(Table[AccountName]), Table[AccountName], ", ")
,
"No Account Selected"
)

 

It only works for Account name. If I drill down to invoice number and select a respective number it wont display in the card visualization.

 

How do I alter my measure to work for both in the matrix.

 

And If I add a 3rd 4th row potentially...

 

Thanks

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @AA622 

 

Try this measure

FlagsSelected = 
SWITCH (
    TRUE (),
    ISFILTERED( 'Table'[InvoiceNumber] ),
        CONCATENATEX (
            ALLSELECTED ( 'Table'[InvoiceNumber] ),
            'Table'[InvoiceNumber],
            ", "
        ),
    ISFILTERED ( 'Table'[AccountName] ),
        CONCATENATEX (
            ALLSELECTED ( 'Table'[AccountName] ),
            'Table'[AccountName],
            ", "
        ),
    "No Account Selected"
)

vjingzhang_0-1648023401062.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @AA622 

 

Try this measure

FlagsSelected = 
SWITCH (
    TRUE (),
    ISFILTERED( 'Table'[InvoiceNumber] ),
        CONCATENATEX (
            ALLSELECTED ( 'Table'[InvoiceNumber] ),
            'Table'[InvoiceNumber],
            ", "
        ),
    ISFILTERED ( 'Table'[AccountName] ),
        CONCATENATEX (
            ALLSELECTED ( 'Table'[AccountName] ),
            'Table'[AccountName],
            ", "
        ),
    "No Account Selected"
)

vjingzhang_0-1648023401062.png

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

lbendlin
Super User
Super User

Extend your measure to check for the scope - ISINSCOPE can tell you where in the hierarchy you are.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.