Forum Discussion

AlexandreCoutoB's avatar
AlexandreCoutoB
Frequent Visitor
3 years ago
Solved

Deneb - How to add measures on another dataset

Hi,   I want to replicate the sunburst example from Vega on my PBI here: https://vega.github.io/vega/examples/sunburst/   But, my values are not in a table, they are measures. So, I need to combi...
  • giammariam's avatar
    giammariam
    3 years ago

    A couple things:

    • You're missing the parent column. I created one based on the numbering of your IDs, although if you are going to stick with this type of hierarchy and eventually add more nodes, I'd consider handling the parent column separately. If you don't need this parent-child relationship visualized, feel free to delete the formula transform that I added to create the parent column.
    •  I moved all encodings to the update channel and that seemed to get the colors and tooltips working. Unless I want encodings to change in a particular way due to data binding changes, I'll usually always have everything in update.

    Here's the updated .pbix