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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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