Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

xviz hierarchical slicer doesnt work with measures


I am struggling with displaying the correct values of a measure that calculates gross margin in a hierarchical slicer. I am using Xviz hierarchical slicer to display the data. At the lowest levels of the hierarchy, the gross margin displays correctly. As you go up to higher levels in the hierarchy, it does not display gross margin. It displays the sum of the gross margins from the level below it. I do not understand why you cannot calculate gross margin at different levels of the hierarchy. The hierarchy that I have is product family, product group, part number. Below is an example of what I get:


If you notice, levels two and three of the hierarchy are just a sumof the values of the gross margin at the levels below them, they are not a calculation of gross margin at the appropriate level of the hierarchy. I have tried to use isinscope in the formula for the gross margin measure, but that does not help. any ideas How I can get this Xviz visual to work? Or how I can do it using a different method?



Super User IV
Super User IV

@CL7777 since it is a custom visual, I would recommend reaching out to the developers.


I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at, your one-stop-shop for Power BI-related projects/training/consultancy.

Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!


Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors