1

We have a Wave dashboard embedded on a Lightning and Classic page.

We need to filter this dashboard to only display data relevant to a specific Contact.

This works fine in Classic, but Lightning gives us the following error when adding the the json to the page component: Error: The filter for this dashboard is invalid.

Provide a valid filter in JSON The JSON is: { "ithSales": { "Contact.Id":["$contact_18di___c"] } }

3

You can't apply filters directly with Lightning.

You will need to create a VF page and apply the filters using that. See this post for reference. So, it would look something like

<apex:page sidebar="true" standardController="account">

  <wave:dashboard dashboardId="0FKB000000006Y7OAI" 
        showTitle="true" 
        height="475px" 
        openLinksInNewWindow="true" 
        filter="{'opportunities': {'Id': ['{!Account.Id}']}}" />

</apex:page>

This will ensure filters are interpreted correctly. See this link for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.