Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I am using a parameter generated from the What If functionality in PBI Desktop. I am using the parameter value in another measure to determine the amount of months to include in a rolling average. This parameter series is on a slicer so that users can select how large the rolling period will be.
I am trying to get the <endvalue>/max value of the parameter to be the # of months between the max and min dates that are currently within the page's filter context. Users will also be able to change the date range using a page filter (ranging anywhere from 2016 and 2020) and thus I would like to have the max value of the parameter slicer adjust to the selected range.
This is what I currently have for my DAX:
Please let me know if this is currently possible with the GENERATESERIES() function or if there is a workaround with another function.
Thank you.
What you have to do to get what you want is use the Filter Pane (Filter This Visual) and create a measure that will depend on the visible dates. Then use the measure to filter your slicer for the right choices in the current setting.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 9 | |
| 8 |