How to apply dynamic filters to data visualization component in UI builder?

Abhinandan Pati
Giga Guru

Hello experts,

I am trying to apply dynamic filter to data visualization components like Donut/Pie charts in UI builder. We don't have dynamic data binding filter option in Data Sources selected on Data Visualization component. We can configure only static filters like 'Active=true' in data sources that are used in Pie charts/Donut reports.

I am trying to apply dynamic filter on Pie Chart created on Entity overview page of Risk workspace. I would like to show ALE data of a specific entity or current entity on Pie chart instead of showing ALE data of all entities. I have sys_id of current entity in context object:@context.props.sysId. Is there any way to use this sys_id in a data visualization component to show data of current entity?

I went through below article but I could not understand the way it is relating a filter component to Data Visualization component.

UI Builder - Setting up dynamic filters on a data visualization using mergePARFilters - Support and ...

In multiple OOB pages reports, I see that ServiceNow is using 'Apply par filter' client script to filter such data visualization reports but I could not figure out the relationship between filter component and data visualization component.

Please let me know if you have implemented something similar in ServiceNow.

@Chuck Tomasi @Brad Tilton @Jeremy Duncan @Kreg Steppe : I would greatly appreciate it if you could share your thoughts and inputs on this. 

Thanks,

Abhinandan

8 REPLIES 8

Community Alums
Not applicable

did you got the solution for this

Johns Marokky
Tera Guru

Hi @Abhinandan Pati ,

I had found an way to do it using dynamic filter.

Let me know if you still need help on this.

 

Regards,

Johns

yes please..

Community Alums
Not applicable

I too need solution for this