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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
darrenfishell
Advocate II
Advocate II

Bug when using field parameters to modify date fields in a "Before", "After" or "Between" slicer

I am attempting to use Field Parameters to handle a common scenario to allow users to toggle between date filters using the exact date and filtering to the period of a specific date. 

I have a workaround, but wanted to flag what I believe is a bug in the preview feature (which is otherwise great)! 

Here's the relevant portion of my data model: 

darrenfishell_0-1674594236679.png

I created this bridge table after getting an error I thought was caused by a Many-to-Many relationship from PERIOD_DATE[PERIOD_ID] -> 'DATE'[PERIOD_ID]. 

In my report, I've then configured a field parameter that toggles between 'DATE'[DATE] and PERIOD_DATE[DATE]. 

I would like to enable the slicer-to-slicer filtering, where one slicer selects the field used and the second slicer then displays the values of the selected field and allows the user to filter by the selected field. 

I am able to use this with a Relative Date filter with no issues, as follows: 

darrenfishell_1-1674594472066.png

I am hoping to set this slicer instead to be either a "Before" or "Between" filter selection, to meet my reporting requirements. When I try to change the slicer using field parameter fields to a "Before" filter, I get the following error message. 

darrenfishell_2-1674594668266.png

I believe that this filtering should work, given that the individual slicers using the relevant fields work as expected. 

1 REPLY 1
darrenfishell
Advocate II
Advocate II

I have found another issue I believe is related. I've changed the field parameter to instead toggle between 'DATE'[DATE] and 'DATE'[MONTH_START] and I am getting a slightly different issue when switching to either "Between", "Before" or "After" filters -- it displays the fields in a hierarchy, which is not present in the data model: 

darrenfishell_0-1674595759365.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.