Forum Discussion

kpavan999's avatar
kpavan999
Frequent Visitor
5 years ago
Solved

Display selected slicer values(multiselect)

Hi experts,

 

I have been searching for solution to my requirement since a couple of days but couldnt find one, hence creating this thread.

My requirement is just to display the values that are selected in a slicer(could be multi values as well).

 

I tried

Filters Selected =
IF (
    ISFILTERED ( MyTable[MyColumn] ),
    CONCATENATEX ( FILTERS ( MyTable[MyColumn] ), MyTable[MyColumn], ", " ),
    "ALL"
)

but the problem we are facing is, it displays the values only that has the data in my tables for that selected combination

 

for eg,

i have 2 slicers, year and Region. In my tables if I dont have data for this selected combination. My Filters Selected will show blank.

Is this expected behaviour? Or is there something that Im missing. Any suggestions pls...

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi kpavan999 ,

    As checked your sample file, you have created a one-to-many relationship between Table 1 and Table 2, with the filtering direction being single. And you are using the Region field of table 1 as a slicer option, the region of table 1  only have APJ and NA. Only the relevant data with selected year and these two regions will be displayed in table visual in case the region slicer using the Region field of table 1 does not select any region. If you want to display data about all the regions in Table 2 in the table visual, place the region field in Table 2 as the first field of table visual. Select the table visual, then in the Values fields well, right-click the field and select Show items with no data from the menu that appears, as shown in the following image:

    Best Regards

8 Replies

  • Do you get solution for this issue, I meet same problem. Please share the resolution if any, thanks.

  • Samarth_18's avatar
    Samarth_18
    Community Champion

    Hi kpavan999 

     

    Can you try below code:-

    Measure = CONCATENATEX ( VALUES ( 'Table'[Column] ) , [Column] , ",")

     

    Thank you,

    Samarth

  • Samarth_18's avatar
    Samarth_18
    Community Champion

    kpavan999 , Is it possible for you to share PBIX file? You can delete your sensitive data and share what is enough to to check your issue.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi kpavan999 ,

        As checked your sample file, you have created a one-to-many relationship between Table 1 and Table 2, with the filtering direction being single. And you are using the Region field of table 1 as a slicer option, the region of table 1  only have APJ and NA. Only the relevant data with selected year and these two regions will be displayed in table visual in case the region slicer using the Region field of table 1 does not select any region. If you want to display data about all the regions in Table 2 in the table visual, place the region field in Table 2 as the first field of table visual. Select the table visual, then in the Values fields well, right-click the field and select Show items with no data from the menu that appears, as shown in the following image:

        Best Regards

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi kpavan999 ,

    Could you please share some sample data(exclude sensitive data) and your expected result with backend logic and special examples in order to provide you a suitable solution? Do you want to display the text with "2015-FY, APJ" on your visual if you selected the values in below 2 slicers? By the way, do the field [Year] and [Region Level 1] come from the same table? Thank you.

    In addition, please review the content in the following links. Hope they can give you some clue or insight.

    Display selected slicers in Power BI

    Creating a slicer that filters multiple columns in Power BI

    Best Regards