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! Learn more

Reply
febrina
New Member

Filter rows based on two columns

Hi,

I want to exclude my data based on two conditions.

1. Column [Name] = "Sarah"

2. Column [Date] = Less than 09/01/2021

 

Does anyone know how to make the filter? I have tried to add custom column, but it didn't work.

Thanks in advance

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @febrina 

 

You can create a column and use it in filter pane to filter data.

Like this:

column =
IF ( table[Name] = "Sarah" && table[Date] <= DATE ( 2021, 9, 1 ), 1, 0 )

vjaneygmsft_0-1641801264466.png

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
 
Best Regards,
Community Support Team _ Janey

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @febrina 

 

You can create a column and use it in filter pane to filter data.

Like this:

column =
IF ( table[Name] = "Sarah" && table[Date] <= DATE ( 2021, 9, 1 ), 1, 0 )

vjaneygmsft_0-1641801264466.png

Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
 
Best Regards,
Community Support Team _ Janey
amitchandak
Super User
Super User

@febrina , a new measures 

calculate(sum(table[value]), filter(Table, not( Table[Name] = "Sarah" && Table [Date] <date(2021,09,01) ) ))

 

Change order of month and day in date if needed

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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