Forum Discussion

abhinavt's avatar
abhinavt
Cloud Apps
11-26-2024

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.
 

1 Reply

  • 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.