March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
hi everyone,
I need to set two categoricl vew mapping. I looked to example of combo chart capabilities, however it does not work in my visual.
I have two categorial view, values in second are correct, however, categories are same as in first view. What can be the problem?
Solved! Go to Solution.
It's native Power BI visuals. Multi data views are not supported by Power BI Custom Visuals API.
Please also note this repo is deprecated. Pleae don't rely on code in this repo anymore.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Do you want ot use two or more categories in your own custom visuals?
Can you share your current capabilities.json?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
As far as I know, Power BI Custom Visuals API doesn't support two or more dataViews.
Please use the single dataView in categories to resolve the issue.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Ok. Thank you.
Since visuals don't support more than one dataview, why does combo chart's capabilities file have three of them?
What combo chart are you talking about?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Here is the link to file, which I'm talking about: https://github.com/Microsoft/PowerBI-visuals-core/blob/master/src/Clients/Visuals/capabilities/combo...
It's native Power BI visuals. Multi data views are not supported by Power BI Custom Visuals API.
Please also note this repo is deprecated. Pleae don't rely on code in this repo anymore.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Here is my capabilities file. As I understood from tutorial on github, second dataviewmapping will result in two categorical data with different categories and values. When I use this code, I have two categorical data, but categories from first one also displayed in second one, whereas there is no "check_cat". At the same time, data for second categorical view displayed correctly.
{ "supportsHighlight": true, "dataRoles": [ { "displayName": "Item name compl", "name": "category", "kind": "Grouping" }, { "displayName": "Dates", "name": "date", "kind": "Grouping" }, { "displayName": "Dates well test", "name": "date_wr", "kind": "Grouping" }, { "displayName": "check cat", "name": "check_cat", "kind": "Grouping" }, { "displayName": "value1", "kind": "Measure", "name": "value1" }, { "displayName": "value1 unit", "name": "value1_unit", "kind": "Measure" }, { "displayName": "value2", "name": "value2", "kind": "Measure" }, { "displayName": "value2 unit", "name": "value2_unit", "kind": "Measure" }, { "displayName": "value3", "name": "value3", "kind": "Measure" }, { "displayName": "value3 unit", "name": "value3_unit", "kind": "Measure" }, { "displayName": "value4", "name": "value4", "kind": "Measure" }, { "displayName": "value4 unit", "name": "value4_unit", "kind": "Measure" }, { "displayName": "check val", "name": "check_val", "kind": "Measure" } ], "dataViewMappings": [ { "categorical": { "categories": { "select": [ { "for": { "in": "category" } }, { "for": { "in": "date" } }, { "for": { "in": "date_wr" } } ] }, "values": { "group": { "by": "date", "select": [ { "bind": { "to": "value1" } }, { "bind": { "to": "value1_unit" } }, { "bind": { "to": "value2" } }, { "bind": { "to": "value2_unit" } }, { "bind": { "to": "value3" } }, { "bind": { "to": "value3_unit" } }, { "bind": { "to": "value4" } }, { "bind": { "to": "value4_unit" } } ] } } } }, { "categorical": { "categories": { "select": [ { "for": { "in": "check_cat" } } ] }, "values": { "group": { "by": "check_cat", "select": [ { "bind": { "to": "check_val" } } ] } } } } ] }
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
8 | |
3 | |
2 | |
1 | |
1 |
User | Count |
---|---|
6 | |
3 | |
3 | |
2 | |
2 |