Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

How can I set the following dataViewMapping

I have 2 categories and 2 measures I want to set them in a categorical set:

I tried this but its not working:

 

 

"dataViewMappings": [
        {
            "categorical": {
                "categories": {
                    "select": [
                        {"bind": { "to": "category" }},
                        {"bind": { "to": "name" }}
                    ],
                    "dataReductionAlgorithm": { "top": { "sample": 64000 } }
                },                
                "values": {
                    "select": [
                        {"for": { "in": "measure" }},
                        {"for": { "in": "segments" }}
                    ],
                    "dataReductionAlgorithm": { "top": { "sample": 64000 } }

                }
            }
        }
    ]

 

 

I don't want to use the table dataView Mapping

1 Reply

  • v-viig's avatar
    v-viig
    Community Champion

    Doesn't it work? Do you get a dataView?

    Why don't you want use table mapping?

     

    Ignat Vilesov,

    Software Engineer

     

    Microsoft Power BI Custom Visuals

    [email protected]