Forum Discussion
Specifying the order for data roles
- 8 years ago
Looks like it's impossible to achieve since Power BI Desktop that you use is out dated.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
You might specify conditions for the data-fields to fill field in the proper order (example).
Anonymous Could you please share your capbilities.json for futher investigation?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I think I managed to make it work. I had a condition for the GroupOrMeasure field, but not for the Groupping field. Once I added conditions for the Groupping field as well it works as planned (at least in the latest version of Power BI Desktop, some older ones work differently).
Is there any specification in what order do the fields get filled? Are you maybe considering adding some options for the developers of the custom visual to specifiy the order?
- v-viig8 years agoCommunity Champion
There's no specification but the order can be controlled by adding rules to the conditions of your capabilities.json.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- Anonymous8 years agoNot applicable
It does work for certain cases but not for all. For example I tried using the same condition in capabilities.json but I used two different clients (Power BI Desktop for Report server June 2017 and Power BI desktop December 2017) and they work differently. So I guess something changed in the newer version that makes it work differently even though the whole capabilities file is the same.
- v-viig8 years agoCommunity Champion
Can you share your capabilities.json to check the issue from our side?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals