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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
CostaBella
Frequent Visitor

Date Splitter

I have a database that has a date column i am trying to manipulate. I need to be able to search the database for a particular month and year, the day is not important. When i refresh i want to be able to pick a month and year and only show me the information for said month(s) and year.

 

Thanks for any advice!

1 ACCEPTED SOLUTION
adudani
Super User
Super User

@CostaBella ,

 

After connecting to the object in the database.

 

create a column month year , or two columns year and month and filter the data you want in Power Query?

 

 

else, 

 

while connecting to the database, you should be able to to filter before connecting as well. 

 

example in SQL server using T sql in the advanced options:

 

adudani_0-1674139093964.png

 

Please let me know if this resolves the query.

 

Appreciate a thumbs up if this is helpful

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

View solution in original post

1 REPLY 1
adudani
Super User
Super User

@CostaBella ,

 

After connecting to the object in the database.

 

create a column month year , or two columns year and month and filter the data you want in Power Query?

 

 

else, 

 

while connecting to the database, you should be able to to filter before connecting as well. 

 

example in SQL server using T sql in the advanced options:

 

adudani_0-1674139093964.png

 

Please let me know if this resolves the query.

 

Appreciate a thumbs up if this is helpful

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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 Kudoed Authors