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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.