Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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 name | created on | short name |
| xyz | 2023 | d |
| abc | 2022 | sx |
| abc | 2023 | rf |
| wed | 2022 | f |
Solved! Go to Solution.
Hi @dshah12 ,
Filter your table on anything, just to get the Table.SelectRows code populated in your formula bar. For example:
Now edit the code directly in the formula bar to this:
Pete
Proud to be a Datanaut!
Hi @dshah12 ,
Filter your table on anything, just to get the Table.SelectRows code populated in your formula bar. For example:
Now edit the code directly in the formula bar to this:
Pete
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?
If that's not the issue, then you may need to provide some more example data that represents this new scenario.
Pete
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
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |