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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
barbforsman
Resolver I
Resolver I

report level filter vs. filter on query

I have a Report Level Filter on a report on my CRM Salesorders, "Name does not contain Cancel".  I want to change that so the filter is on the query itself, rather than on the report, but my values change by up to 2K if I do that. 

 

Why does putting the filter on the Query still allow some orders to come through to the report with "Cancel" in the name?  Why do I still need the Report Level Filter to filter them all out?

 

Values with filter on the query:

2016 = 61.57

2017 = 104.91

2018 = 48.49

 

Values with filter on Report Level Filter

2016 = 59.12

2017 = 103.23

2018 = 48.49

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Got it. Power Query is case sensitive. You have given does not contain "Cancel" so records with "Cancel" will filtered, but not "CANCEL". Please use the below formula to make sure all CANCEL/ Cancel gets filtered.

 

 

= Table.SelectRows(#"Changed Type", each not Text.Contains(Text.Upper ([Status]), "CANCEL"))

 

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Could you please share what is the exact value in the column ( is it just 'Cancel' or value contains 'Cancel') and also share what filter you have used in Query level?

This is the report level filter

report level filter.JPG

 

And this is the filter on the query:

query filter.JPG

 

Help will be much appreciated!

 

Anonymous
Not applicable

Did you try this option? This works for me.

 

Pivot.png

 

And then apply the filter

 

Filter.png

Filter.png

Thank you - I tried this but my canceled orders are already filtered out. 

I do need to filter out orders that have Cancel in the name field as we do end up with a few orders in an Invoiced Status but end up Canceled.  I've included a screenshot from an advanced query in CRM showing thisStatus.JPG

 

 

Anonymous
Not applicable

Got it. Power Query is case sensitive. You have given does not contain "Cancel" so records with "Cancel" will filtered, but not "CANCEL". Please use the below formula to make sure all CANCEL/ Cancel gets filtered.

 

 

= Table.SelectRows(#"Changed Type", each not Text.Contains(Text.Upper ([Status]), "CANCEL"))

 

This is the report level filter

report level filter.JPG

 

And this is the filter on the query:

query filter.JPG

 

Help will be much appreciated!

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.