Forum Discussion

kurrysamir's avatar
kurrysamir
Helper I
1 year ago
Solved

Direct Query using Stored Procedure with a date/time parameter

Hi All, I have a single date filter which passes the date to the stored procedure. It works perfectly fine using Import Mode. I need to execute a stored procedure using direct query as the scenario...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi kurrysamir ,
    Thanks for the update!
    The issue is with the slicer style. When you use the "Between" style, even for a single date, Power BI treats it as a range filter, which is not supported for dynamic M parameters. Thats why switching to a drop-down works . It applies a direct, single-value filter, which is supported. Just make sure your slicer is set to List or Drop-down, and the field is from a proper date table.
    If you would like to see support for single-date "Between" slicers in the future, feel free to suggest it on the Power BI Ideas forumFeedback submitted through these channels is frequently reviewed by the product teams and can contribute to meaningful improvements.

    Hope this helps.If so,consider accepting it as solution.

    Regards,
    Pallavi.