Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
AnthonyXelya
Helper II
Helper II

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.

AnthonyXelya_0-1658150666905.png

 

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!

1 ACCEPTED SOLUTION
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.

vstephenmsft_0-1658385934338.png

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

vstephenmsft_1-1658385965623.png

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.

View solution in original post

2 REPLIES 2
AnthonyXelya
Helper II
Helper II

It was so simple!
Thank you!

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.

vstephenmsft_0-1658385934338.png

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

vstephenmsft_1-1658385965623.png

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.