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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
joshua1990
Post Prodigy
Post Prodigy

Remove rows based on two Columns

Hi all!

 

I have a table with this structure:

Order Nr Date Step Value
1001 01.01.2022 10 5
8001 01.01.2022 10 5
2001 01.01.2022 11 5
1002 01.01.2022 10 6

 

Now I would like to filter out all rows where

  1. Order Nr starts with 8
  2. Order NR starts with 5 and where Step = 11 or 12

Since this is a really huge table I have a strong focus on the performance.

What would be your sugestion here?

1 ACCEPTED SOLUTION
PowerBIOrg
Resolver II
Resolver II

Hi, 

 

With the following data:

PowerBIOrg_0-1662364204365.png

 

I filter with the following query and get the below output

not Text.StartsWith([Order Nr], "8") and not (Text.StartsWith([Order Nr], "5") and [Step] >= 11 and [Step] <= 12 )

PowerBIOrg_1-1662364289991.png

 

Regards.

View solution in original post

1 REPLY 1
PowerBIOrg
Resolver II
Resolver II

Hi, 

 

With the following data:

PowerBIOrg_0-1662364204365.png

 

I filter with the following query and get the below output

not Text.StartsWith([Order Nr], "8") and not (Text.StartsWith([Order Nr], "5") and [Step] >= 11 and [Step] <= 12 )

PowerBIOrg_1-1662364289991.png

 

Regards.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.

Top Solution Authors