Forum Discussion

AnthonyXelya's avatar
AnthonyXelya
Helper II
4 years ago
Solved

Filtering lines with a parameter

Hello everyone,

 

I have a table with the bill items of clients (potentially, I have several lines for the same client for the same month).

I have a segment to filter to only make appear clients with at least a certain amount of bills in the month.

 

So I have created a measure to calculate the sum of bills and I must compare this measure  to the value of the segment (here : Valeur CA Minimum) to know if I show (or not) the clients in my visuals.

Is it possible? How can I do that?
Don't hesitate to ask me questions if I'm not clear!

 

Thank you!

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi AnthonyXelya ,

     

    Is that a what-if parameter?

    You can create a measure for filtering.

    Measure = IF(SUM('Table'[Value])>=[CA Minimum Value],1)

    Put the measure into the visual-level filters, set up show items when the value is 1.

    When you set the value in the slicer is 3, the results is as follows.

    You can create the measure similar to mine above to filter your data.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi AnthonyXelya ,

     

    Is that a what-if parameter?

    You can create a measure for filtering.

    Measure = IF(SUM('Table'[Value])>=[CA Minimum Value],1)

    Put the measure into the visual-level filters, set up show items when the value is 1.

    When you set the value in the slicer is 3, the results is as follows.

    You can create the measure similar to mine above to filter your data.

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.