Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi, does anyone have a pbix file to show me an example on how to reference in M query a dynamic M parameter to filter data based on Month-Year field?,
I have a datetime field, which I need to transform to Month-Year format, then I want to use it as a parameter so users are able to select a particular Month-Year in the slicer to display the data.
Solved! Go to Solution.
Yes I needed M dynamic query for better performance, but I resolved the question by myself using Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn
If your direct query table doesn't have a column with values that match the ones in your YearMonth slicer, it isn't as straight forward. Two options:
1. Are you sure you need Dynamic M parameters? If you have a Date table with a relationship to your DQ table, your visual should create a query that includes the date values in that YearMonth.
2. In the query editor, you'll have to create min and max date values from your selected text YearMonth value. You can then filter your query by the min and max dates.
Pat
Yes I needed M dynamic query for better performance, but I resolved the question by myself using Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn
Hi, I'm looking for a solution here also, Issue I have is the sendign a a date Parameter, when you managed to solve your issue did you happen to use a date parameter, would b goo dto see how you got that to work. I am direct Query-ing Snowflake, I have made a data parameter I have made a filter to use for the parameter, but cannot seem to attch( Bind) it all together and get the correct date format. Any help you can give here?
What is your data source? SQL server table?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
12 | |
11 | |
9 | |
6 | |
6 |