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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
aeinc01
Frequent Visitor

Help Creating a Date Dropdown Menu in Direct Query.

Originally, I built a static dashboard and was able to create a column with the function below to aggregate dates for a dropdown menu:

MonthYear = DATE(YEAR('UTILIZATION_BY_HOURS'[Date]), MONTH('UTILIZATION_BY_HOURS'[Date]), 1)

However, once I attempted to use the same function for Direct Query, it no longer works. I attempted to make some tweaks in Power Query, but I'm still running into an issue. 

 

For context, the dropdown menu originally looked like this and I would like to maintain this format:

Screenshot 2023-04-26 at 1.28.13 PM.png

 

Any suggestions will be appreicated. Thanks again. 

2 REPLIES 2
lbendlin
Super User
Super User

Do you have the option of having your Direct Query data source provide these values?

As in converting the dates to this formart? Even so, I get duplicates for each individual date. 

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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