Forum Discussion

sasdfasdfsad's avatar
sasdfasdfsad
Icon for Advocate IV rankAdvocate IV
1 year ago
Solved

Can't use Measure value in filter?

I'm following this Guy in a Cube but I can not get it work:

Nothing selected in Power BI Slicer? Then don't show data! - YouTube

 



Is Name Filtered = INT(ISFILTERED('Table'[Name]))


I then set the table to have an added visual filter for that Measure but the table is not responsive to the filter.  



When I make a selection in the slicer the "Is Name Filtered" value changes, but the table doesn't react.

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi sasdfasdfsad ,

     

    Thanks for lbendlin reply!

     

    sasdfasdfsad The link you provided can't open, but there is another method about your question.

    Create the measure and add it to Columns of Table visual.

    Measure =  CALCULATE ( IF ( ISFILTERED ('Table'[Name] ), 1, 0 ), ALLSELECTED ('Table') )   

    The modify the Filter and click "Apply filter".

     

    When I select nothing, the table shows nothing.

     

     

     

     

    Best regards,

    Mengmeng Li

6 Replies