Retrieve Explicit Dashboard Filter values when "Include All" is selected
Hello All,
I'm trying to get a dashboard filter values when Sisense dashboard is embedded in our website (using EmbedSDK). I was able to get the active filters when I use the below function and when "Include All" is not selected.
// Function to retrieve filter values for the dashboard
function getDashboardFilterValues()
{
const filter = prism.activeDashboard.filters.$$items.find(el => el.jaql && el.jaql.dim === dimension);
return filter?.jaql?.filter?.members || [];
}
}
Problem arises when a user selects "include all" (see below) instead of explicit selection, this function doesn't return any values. Ideally it should still return the 3 values as shown above.
abhinavt
Posted 1 year ago·Last reply 1 year ago
1 comment
DRay
·1 year agoHello abhinavt,
Thank you for reaching out. I see your question hasn't gotten a response yet, so I'm asking internally to try and get you an answer.