cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
v-stephen-msft
Community Support
Community Support

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!

v-stephen-msft
Community Support
Community Support

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors