Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Include a measure in the visual level filter.

Can I use a measure in a visual level filter. I have to display the products those have productSales above the average value avg .

I'm using DirectQuery,so the average value may change over time.

  • Hi Anonymous

     

    I have a table "Sales"

     

     

     

    "Avg" and ">Avg" are "calculated columns"

     

    Avg = AVERAGEX(ALL(Products);Products[Sales]) 
    > Avg = IF(Products[Sales] >= Products[Avg];">Average";"<Average")

    You can use it to filter.

     

     

    I hope this helps

     

    BILASolution

3 Replies

  • BILASolution's avatar
    BILASolution
    Icon for Solution Specialist rankSolution Specialist

    Hi Anonymous

     

    I have a table "Sales"

     

     

     

    "Avg" and ">Avg" are "calculated columns"

     

    Avg = AVERAGEX(ALL(Products);Products[Sales]) 
    > Avg = IF(Products[Sales] >= Products[Avg];">Average";"<Average")

    You can use it to filter.

     

     

    I hope this helps

     

    BILASolution

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

    Hi Anonymous,

     

    Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.

     

    Best Regards!
    Dale