Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Slicer (Measure Count)

Hello Everyone

Could you pls help me?

I have the following table in PowerBi. The "Has Paid?" column is a measure. And I would like to create a slicer which displays

Has paid? 1 or blank to filter the ones which are blank. 

Is there a way to insert this measure into a slicer?

NameAddressHas Paid?total records
xxxxxxyyyyy11
aaaabbbb 1
cccccdddd11
dddddeeee 1
dddddrrrrrr11

 

10 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    You can try to put the measure into the filter pane on the right side.

     

    Then you can filter the measure.

     

    Aiolos Zhao

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for your suggestion. Anonymous 

      Actually, I would like to create the slicer to give the user the option to filter the data. This is why I have asked about it

      • Anonymous's avatar
        Anonymous
        Not applicable

        can you change the measure to a calculated column?

         

        by the way, the user can also use the filter pane to filter the measure in the front-end.

         

        Aiolos Zhao

  • Anonymous ,

    Can you please share the DAX for your measure so we can try to convert it into Column.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Tahreem24 

      Thanks for your reply

      I will share it as long as getting back to the office.

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hello Tahreem24 

         

        See the DAX below

         

        Has Paid? =
        IF (
        [TotalActivePayersCount] = BLANK (),
        BLANK(),
        DISTINCTCOUNT ( Payments[ID] )
        )