Forum Discussion

rnola16's avatar
rnola16
Icon for Advocate II rankAdvocate II
1 year ago
Solved

Date Picker in slicer

Hello all,   I have an dynamic M query with a date parameter on Birth Date as 'Param_StartDate'. Created a blank query using power query listing all dates from 2004-2010 with 'Date_Col' as column. ...
  • rnola16's avatar
    1 year ago

    What is I observe is, if the column is 'Bind to Parameter' you only see Vertical List, Tile and Dropdown.

    But when it is NOT binded to Parameter you see Between, before, After Relative date and Time.

     

    The Parameter 'Param_StartDate' is defiend as 'Date' data type.

    the column EMPL.BIRTH_DT is a 'Date' data type in the database.

    And the where clause in the M code reads as 

     

    "where EMPL.BIRTH_DT = ' "&Date.ToText(Date.From(Param_StartDate),"yyyy-MM-dd")&" '

  • V-yubandi-msft's avatar
    1 year ago

    Hi rnola16 ,

    Thank you for sharing the details and your valuable observations about date slicers in Power BI with dynamic M query parameters.

    You're  right, When a field like Date_Col is linked to a parameter such as Param_StartDate, the slicer options become limited. You can only use basic types like Dropdown, Tile, or Vertical List, while advanced options like Between, Before, After, or Relative Date/Time are no longer available.

     

    This behavior is intentional and is a known limitation of dynamic M query parameters in Power BI, as mentioned in the official Microsoft documentation.

     

    Link:Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

     

    Also, thank you kushanNa , for referencing the helpful video and prior blog post which demonstrated this limitation and offered practical guidance.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.