We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to create a date range interactive filter for dashboards?

Dario Marquez
Tera Expert

I need to create an interactive filter that allows me to set in between dates in a dashboard. Similar to the date filter currently exists in standard reporting but in a widget that I can add to a dashboard. I don't need the time, just the dates. So far I've found only 1 script in the community with an update set that creates a macro and a widget, but didn't work for me. Does anyone have a different script or update set that can help me create this filter? find_real_file.png

1 ACCEPTED SOLUTION

Hey, this worked for me. The update set is a combination of 2 contributions based on this post:

Interactive Filter "between dates"

Basically the update set creates:

  • a new widget called "custom interactive filter"
  • and a UI macro, which is the backend magic that works with the new widget created

the widget coding is originally from the accepted solution from the mentioned post, but the macro part doesn't work, so the macro fixed code was posted in a later reply (that for some reason I am not able to find). But the macro displayed text was in Norway language, so I had to translate it. 

So the final update set is like a hybrid solution compiled in the attached update set, which should give you something like pic below. You will only need to update the table names  in the widget coding(pic 2), everything is explained in the linked post. So at the end you will have one filter for each table needed.  Let me know any questions.

find_real_file.png

pic2

find_real_file.png

 

View solution in original post

68 REPLIES 68

I followed the steps as mentioned above. But after exporting the xml on my PDI it works in the beginning and at later stage it stops. Even i do not get any checkbox to select "Interactivity" as provided in the attached screenshot. Can you please help me out.

find_real_file.png

Hello,

 

I have same issue with update set. Have you got solution for it?

Hi,

 

Im facing the same issue. Were you able to fix this? @Ashutosh Kumar , @Dario Marquez  please let me know.

Thanks!

Try this other code from another post: Date Range filter in a dashboard

The  pieter.goris code that is referred on that post is the same from my update set. 

Hi Dario,

I applied the update set in my personal instance and it working perfectly fine. When I did the same in my Dev environment. It's not working. Am I missing anything?

 

Regards,

Pavan Devineni.