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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Westen
Regular Visitor

Remove rows based on data in another column

Hello

 

Need help filter out data in a dataset

I have a table that looks like this:

 Date 1

Date 2

Value 1

Values

2022-09-01

2022-10-01

A

1231

2022-09-01

2022-10-02

C

1232

2022-09-01

2022-10-03

B

1233

2022-09-01

2022-09-01

B

1234

2022-09-01

2022-09-02

A

1235

2022-09-01

2022-09-03

C

1236

2022-09-01

2022-09-01

B

1237

 

I want to filter out rows in “date 2” column that don’t match the same month in “Date 1” column.

Expected result should be:

 Date 1

Date 2

Value 1

Values

2022-09-01

2022-09-01

B

1234

2022-09-01

2022-09-02

A

1235

2022-09-01

2022-09-03

C

1236

2022-09-01

2022-09-01

B

1237

Anyone that can help me out here?

1 ACCEPTED SOLUTION
tamerj1
Community Champion
Community Champion

Hi @Westen 

I'm not a power query expert but you can add a conditional flag column somthing like

each if Date.Month ( [column1] ) = Date.Month ( [column2] ) then 1 else null

then you can filter out the blanks

View solution in original post

4 REPLIES 4
tamerj1
Community Champion
Community Champion

Hi @Westen 

I'm not a power query expert but you can add a conditional flag column somthing like

each if Date.Month ( [column1] ) = Date.Month ( [column2] ) then 1 else null

then you can filter out the blanks

Thanks! That solves my problem.

lukiz84
Memorable Member
Memorable Member

In PowerQuery or in DAX? If DAX, what do you want to calculate?

I want to remove them in PowerQuery.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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