Forum Discussion

roger-allen's avatar
roger-allen
Regular Visitor
9 months ago
Solved

Slicer stopped working with between style

Hi   I am using the latest Version: 2.149.1203.0 64-bit (November 2025) of Power BI desktop on WIndows 11   I have a time slicer for a direct query against sql on a date column, if I change slice...
  • roger-allen's avatar
    9 months ago

    ok, I beleive I have managed to fix it myself, but it does appear to be a bug, so I'll explain it here in case it helps others

     

    This is the direct query I use, the slicer is on event_time_rounded, but as you can see the query also has a predicate on waitstartdate and waitenddate, which are parameters

    You can see that the default values for theses parameters are more than 60 days ago i.e 01/10/2025 and 10/10/2025 and because I keep a rolling 60 days of data, those values will filter out all rows.

     

    However on the page itself, I have more recent dates linked to these parameters

    But the silcer with 'between' seems to ignore these and instead validates on the default values i.e. it expects no rows

    But the rows are there.  You can see them If I change the slicer from 'between' to 'dropdown', it just doesn't show them when using 'between' 

    So the fix is the change the default values to something that does return rows

    and then the slicer displays correctly with 'between'

    Wierd bug

    Roger