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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
dshah12
Helper II
Helper II

Filter from multiple columns

I have this kind of table and I want to apply specific condition for program name ="abc" that if should have just the data of 2023 from "created on" but the rest of data should remain intact 

program namecreated onshort name
xyz2023d
abc2022sx
abc2023rf
wed2022f
1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @dshah12 ,

 

Filter your table on anything, just to get the Table.SelectRows code populated in your formula bar. For example:

 

BA_Pete_0-1682438883526.png

 

Now edit the code directly in the formula bar to this:

 

BA_Pete_1-1682438932126.png

 

Pete

 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

5 REPLIES 5
BA_Pete
Super User
Super User

Hi @dshah12 ,

 

Filter your table on anything, just to get the Table.SelectRows code populated in your formula bar. For example:

 

BA_Pete_0-1682438883526.png

 

Now edit the code directly in the formula bar to this:

 

BA_Pete_1-1682438932126.png

 

Pete

 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thanks a lot for quick response but when I apply to similar other I donot get any data

= Table.SelectRows(#"Changed Type", each not ([Program Short Name] ="IF" and DateTime.Date([Created On])< #date(2022, 9, 1)))

Hi @dshah12 ,

 

The principle should work the same.

 

Is this the correct reference for your previous query step?

 

BA_Pete_0-1682488401632.png

 

If that's not the issue, then you may need to provide some more example data that represents this new scenario.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Good morning!

 

I watch that in your Created in column, only the year appears, but in the condition that you enter it is as a date. Could that be the mistake?

The condition I applied to different table which was similar here I wanted all IF programs after 1 Sep 2022 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.