Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

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 1
v-viig
Community Champion
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

pbicvsupport@microsoft.com

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.