Forum Discussion

joglidden's avatar
joglidden
Icon for Advocate III rankAdvocate III
10 years ago
Solved

How do I use a measure in visual filter? Is this possible?

I can't believe I'm the first person asking this, but I failed to find a satisfactory answer through search...

Why can I not drag and drop a measure into a visual filter field? This just seems SO obvious...

The only thing that I can make work is to type in a value (e.g. 3). What am I missing?

 

  • joglidden

     

    In Power BI Desktop, it's only supported to apply a range in filter for a numeric field (like measures). Only for text /date field, it will generate a list of containing values. So for your requirement, I suggest you use a calculated column instead of measure to populate values. Then changet the data type into "Text" under "Modeling" tab. 

    Regards,

3 Replies

  • ankitpatira's avatar
    ankitpatira
    Icon for Community Champion rankCommunity Champion

    joglidden That is not possible currently. Fields are quite static and so requires manual input. You can submit that as an idea and i will vote for it as well but unfortunately filters don't support that yet.

    • joglidden's avatar
      joglidden
      Icon for Advocate III rankAdvocate III

      Thanks for the response. I'll submit this as an idea and find another way to attack this problem.

      • v-sihou-msft's avatar
        v-sihou-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        joglidden

         

        In Power BI Desktop, it's only supported to apply a range in filter for a numeric field (like measures). Only for text /date field, it will generate a list of containing values. So for your requirement, I suggest you use a calculated column instead of measure to populate values. Then changet the data type into "Text" under "Modeling" tab. 

        Regards,