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
ejp001
New Member

Cascade Parameter in powerbuilder

I have a couple of Parameters that does not refreshing after the first time using. in other words, it is a date range parameter, that update a startmonth and EndMonth parametes, but If I choose antoher option from Date range parameters the other ones do not change. the Startmonth and endmonth it is a query with a @daterange parameter.

1 REPLY 1
jaweher899
Super User
Super User

It seems like the issue you're facing is with the dynamic update of the parameters. To resolve this issue, you can try the following:

  1. Re-run the query when the date range parameter changes. You can achieve this by setting the "Refresh Automatically" option to "On Change" in the data source properties.

  2. Use a DAX expression to dynamically update the start month and end month parameters. You can use the following expression in the StartMonth and EndMonth parameters:

StartMonth:= MIN(@daterange) EndMonth:= MAX(@daterange)

  1. You can also try to modify the queries that use the StartMonth and EndMonth parameters to include a filter based on the date range parameter, like this:

Filter(MyTable, [DateColumn] >= MIN(@daterange) && [DateColumn] <= MAX(@daterange))

This way, when the date range parameter changes, the filtered data in the StartMonth and EndMonth parameters will also be updated.

I hope this helps you resolve the issue you're facing. Let me know if you need further assistance.

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.