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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.