Dynamic conditions when filtering records from data source

Here is what I want to achieve:

  1. On a page I have a chart block, which aggregates data from a date source, with date as the condition filtering (e.g., for the current month, last month, etc.).

  2. I want to set up an input field on the same page, which allows users to select a particular month

  3. When users click a button, the chart below would map out the data based on the users’ choice of data grouping.

This essentially would require softr to pass the users’ input as a parameter to the conditional filtering when setting up the data source for the chart block.

Also, any way to reference the user input in the page title so that users would know the chart is all about a particular month.

Any body knows how to do it?

Thanks!

Hi, I don’t believe this can be done - there’s lots of posts open about this (& similar) issues with Charts and I don’t believe there’s a solution yet.

This is one of the threads User filters in charts - hoping there will be an update on there soon :folded_hands:

thanks for the feedback. I would love to have this feature, otherwise, I have to create a whole bunch of graph blocks, while a single filtering can solve all the issues.

1 Like

@wzheng163 and @Grainne this is logged internally and will be added. Can’t yet share specific date but we are well aware of the need and it’s in our plans to add this fearure

2 Likes