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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.