function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thabthimsaen WuttisakThabthimsaen Wuttisak 

How to show select data in Wave Dashboards in Salesforce Classic Pages (Embed Wave Dashboards in Salesforce Classic Pages)

Hi everyone,

I want to show only account that I selected in Wave Dashboard. My dataset in Wave Dashboard is...

"Hospital_fullName__c_19": {
                "datasets": [
                    {
                        "id": "0Fb10000000fxbNCAQ",
                        "label": "SAP_Sales_Result_Single",
                        "name": "SAP_Sales_Result_Single",
                        "url": "/services/data/v39.0/wave/datasets/0Fb10000000fxbNCAQ"
                    }
                ],
                "isFacet": true,
                "isGlobal": false,
                "query": {
                    "measures": [
                        [
                            "sum",
                            "Quantity_wave__c"
                        ]
                    ],
                    "groups": [
                        "Hospital_fullName__c"
                    ],
                    "filters": [
                        [
                            "-Closed Date",
                            [
                                [
                                    [
                                        "fiscal_year",
                                        -1
                                    ],
                                    [
                                        "fiscal_year",
                                        1
                                    ]
                                ]
                            ]
                        ],
                        [
                            "Recordtype_Name__c",
                            [
                                "2.Result"
                            ],
                            "in"
                        ],
                        [
                            "Tier1_BSS_Category__c",
                            [
                                "ET"
                            ],
                            "in"
                        ]
                    ]
                },
                "selectMode": "multi",
                "start": [],
                "type": "aggregate",
                "useGlobal": true,
                "visualizationParameters": {
                    "visualizationType": "hbar",
                    "options": {}
                }


Then I created field mapping like this.


    {
        "datasets": {
            "SAP_Sales_Result_Single": [
                {
                "fields": ["Hospital_fullName__c_19"],
                    "filter": {
                        "Hospital_fullName__c": ["$Hospital_Name__c"]
                              }
                }
                ]
                }
         }

But it does not work.

Do you have any suggestion for me?

Thanks,
Bass