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
vishy86
Post Patron
Post Patron

Multi-row card to display current selections

Hi,

 

I am using a Multi-row card to display the current selections for the selections made in the report level filter.

 

I had done this for another report earlier as well and it worked absolutely fine.

 

Today, when I am using the same multi-row card, I am getting records in the card with a scrollbar as compared to "No selections made" when no value is selected or the selected value when a selection is made.

 

Not sure what exactly is happening here.

Please help.

 

Thanks,

Vishy

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

HI @vishy86 .

You can use below measure to check selection status.

Measure =
IF (
    COUNTROWS ( ALLSELECTED ( Table[Column] ) )
        <> COUNTROWS ( ALL ( Table[Column] ) ),
    CONCATENATEX ( ALLSELECTED ( Table[Column] ), [Column], "," ),
    "Unselected"
)

Notice: current power bi not able to check the difference between allselect and unselect, so I add condition to recognize these two scenarios as unselected.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @vishy86 .

You can use below measure to check selection status.

Measure =
IF (
    COUNTROWS ( ALLSELECTED ( Table[Column] ) )
        <> COUNTROWS ( ALL ( Table[Column] ) ),
    CONCATENATEX ( ALLSELECTED ( Table[Column] ), [Column], "," ),
    "Unselected"
)

Notice: current power bi not able to check the difference between allselect and unselect, so I add condition to recognize these two scenarios as unselected.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thanks a lot Xiaoxin, that worked. Just for my info, is it a change in Power BI that current selections have to be handled this way using a measure?

 

As I mentioned before, for an earlier report, I did not create any measure just used multi-row card and dragged the filter fields same as the Reporting Level filters and it worked fine.

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.