Forum Discussion

oakfootballclub's avatar
2 years ago
Solved

how to display multiple selection values in table

I created a measure, it fails to display all the selected value, how to solve it?

data of this table:

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi oakfootballclub 

     

    The ALLSELECTED() function returns a table and the measure can only return a value, that's why the visual can not display.

    Maybe you can try to use the CONCATENATEX() function to get the outcome, here I create a set of sample data:

    Then I create a measure:

    MEASURE =
    VAR _selectedValues =
        ALLSELECTED ( 'Table'[Values] )
    RETURN
        CONCATENATEX ( _selectedValues, [Values], " " )
    

    The result is as follow:

     

     

    Best Regards

    Zhengdong Xu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi oakfootballclub 

     

    The ALLSELECTED() function returns a table and the measure can only return a value, that's why the visual can not display.

    Maybe you can try to use the CONCATENATEX() function to get the outcome, here I create a set of sample data:

    Then I create a measure:

    MEASURE =
    VAR _selectedValues =
        ALLSELECTED ( 'Table'[Values] )
    RETURN
        CONCATENATEX ( _selectedValues, [Values], " " )
    

    The result is as follow:

     

     

    Best Regards

    Zhengdong Xu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.