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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
Memorable Member
Memorable Member

@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
Memorable Member
Memorable Member

@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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.