cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

dataPoints

Question ...

 

i can't find changed datapoint color under dataview ... after i change datacolors in power bi.

There is nothing under metadata.. any ideas ?

 

 

data1.PNG

Regards,

 

3 REPLIES 3
Highlighted
Resolver II
Resolver II

Re: dataPoints

Hello.

When you specify a selector in a VisualObjectInstance object, Power BI attaches an "objects" array to the data-point's parent in the dataview, that contains the new data, rather than to the metadata object.

 

For example, if you're using a categorical DataView and you change the color of the second item in the first column, then categorical.categories[0] will now have an "objects" array. That "objects" array will hold an object corresponding to the VisualObjectInstance at the same index as that of the data-point in the "identity" and "values" arrays. In this example, it's categorical.categories[0].objects[1].

 

Note that despite the fact that the "objects" array's length property is the same as that of the "identity" and "values" arrays, it contains items only for data-points that had their properties changed.

Highlighted
Helper III
Helper III

Re: dataPoints

Thanks for Info.

 

What about when i am using table and not categorical view ?

Highlighted
Resolver II
Resolver II

Re: dataPoints

Hi. Sorry for the delayed response.

Unfortunately, it seems like this feature is not yet supported for table dataviews. Best advice I can give you is to switch to categorical dataview. It shouldn't be too much of a trouble.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.