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
Hi all,
here below I've a sql query that works fine.
I need to add a filter on column [Transaction Date].
the filter should be the equivalent of sql "WHERE YEAR([Transaction Date]) = '2023' AND MONTH([Transaction Date])='03' ".
Then I'll try to pass data 2023 and 03 as dinamic paramaters if possible.
Thanx in advance for any help or suggestion.
....
(continuously of https://community.powerbi.com/t5/Desktop/Retrive-data-from-visual-object-to-use-as-parameters-in-que... where the filter is for more selections and I dont find a way to filter only year and month of date)
Solved! Go to Solution.
Hi @DiePic ,
Please have a try.
Add a custom column.
e.g. = Table.SelectRows(#"Changed Type", Date.Year([date])=2023 and Date.Month([date])=3
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DiePic ,
Please have a try.
Add a custom column.
e.g. = Table.SelectRows(#"Changed Type", Date.Year([date])=2023 and Date.Month([date])=3
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 26 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 54 | |
| 46 | |
| 38 | |
| 28 | |
| 21 |