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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
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.