Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Working with filters in measures

Hello Community. I have a blocker on a task I am doing. So, I have a table with Internet connection clients. A single client could have one site or multiple sites. Each site is billed a different amo...
  • v-easonf-msft's avatar
    v-easonf-msft
    4 years ago

    Hi, Anonymous 

    If I understand you correctly, you can create a measure and drag it to visual filter pane as follows:

    Measure1 = 
    VAR a =
        CALCULATE (
            SUM ( Sheet1[Billed Amount] ),
            ALLEXCEPT ( Sheet1, Sheet1[Client ] )
        )
    RETURN
        IF ( a > 10000, 1, 0 )

     

     

    Best Regards,
    Community Support Team _ Eason
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-easonf-msft's avatar
    v-easonf-msft
    4 years ago

    Hi, Anonymous 

    If it is convenient, please show some relevant screenshots or your current file.

    Do you have other filters/slicers to apply to this visual?

    The measure I created is only uesed to filter the rows that meet the conditions in the original table, and will not affect the value of  Billed Amount. In addition, please check whether the fields used in your matrix are consistent with mine.

    Best Regards,
    Community Support Team _ Eason