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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Learner86
Helper I
Helper I

Delete rows based on conditions

Dear community,

 

how can delete rows based on conditions? I need something like this: if the costs are smaller then 3800 and if the frequency is bigger 1 and the Mdt ist unequal 30 then delete the rows. How can I do this?


Unfortunately, I can't add a table to this post bacause I get the message "marked as spam". I tried different thing but it doesn't work.

 

Many thanks for your help!

 

 

1 ACCEPTED SOLUTION

@Samarth_18: Thank you very much for the solution.

View solution in original post

6 REPLIES 6
Samarth_18
Community Champion
Community Champion

Hi @Learner86 

You can create a custom column in trasform data tab with below code:-

if [costs] < 3800  and [Frequency] > 1 and  [mdt] <> 30 then 1 else 0

image.png

Now filter your custom column of table by selecting "0" 

Samarth_18_0-1630406336369.png

and then click on "close and apply"

You will see your desired result.

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

@Samarth_18: Thank you very much for the solution.

Great! @Learner86  it helps you. Kindly accept my answer as solution so that people can find it more quickly.

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Learner86
Helper I
Helper I

My problem addresses the following table:

Learner86_0-1630403989699.png

I want to delete the rows 1,3 and 5.

@Learner86 

You can apply filters in Power Query to get the desired results. 




Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Learner86 ,

 

All your frequencies are bigger than 1

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.