Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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

  • Anonymous's avatar
    Anonymous
    7 years ago

    HI Anonymous .

    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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    HI Anonymous .

    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

    • Anonymous's avatar
      Anonymous
      Not applicable

      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.