cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Explicit Dashboard Filter values when "Include All" is selected

abhinavt
9 - Travel Pro
9 - Travel Pro
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.
abhinavt_0-1732654307150.png

 


// 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.
 
1 REPLY 1

DRay
Community Team Leader
Community Team Leader

Hello @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. 

David Raynor (DRay)