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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors