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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
CIWEB
Helper I
Helper I

Remove row when columns match?

Is there a way to remove rows based on number or date matching between two columns? In this case I need to be able to remove a row only when column B (Checkout) and column C (Master Date) have the same date. My data looks something like this:


 Checkin                                Checkout            Master Date

   01/02/2018                      01/04/2018            01/02/2018

   01/02/2018                      01/04/2018            01/03/2018

   01/02/2018                      01/04/2018            01/04/2018


Is there a formula for this that I should be using? I can't seem to find an easy way to do this... Any help would be greatly appreciated.

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yep and much easier ( i think ) since can leverage Power Query.  Take a look at the attached PBIX file, go to Power Query and look at the applied steps on the right hand side.  You can see each step as it happens

 

PBIX file:

https://1drv.ms/u/s!AoQIGRpzoxRH-lCFwaur4z5yFq3S

View solution in original post

7 REPLIES 7
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @CIWEB,

 

You also could use dax expression to create a calculated column and use it as the visual level filter.

 

Column = IF('Dates 2'[Checkout]='Dates 2'[Master],0,1)

 

dax.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Do you want to actually remove it from the table, or just simply filter those rows out from various other measures?

Ideally I would like to have removed from the table. Is this possible?

Anonymous
Not applicable

Yep and much easier ( i think ) since can leverage Power Query.  Take a look at the attached PBIX file, go to Power Query and look at the applied steps on the right hand side.  You can see each step as it happens

 

PBIX file:

https://1drv.ms/u/s!AoQIGRpzoxRH-lCFwaur4z5yFq3S

Could you re-share the PBIX file again for this solution?

Thanks for the help that worked like a charm!

Hi! I would like to remove the row instead of using the filter of 0 and 1. Any suggestion?

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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
Top Kudoed Authors