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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.