Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Domenico96
Frequent Visitor

Show total with Hierarchy RLS

Hello,

I have a problem. I have the table dm_territory that filter the ft_visit. I set the hierarchy RLS from the territory to the visit. While the child are correctly showed, I would like to obtain that when a child is filtered, he can also see the total of the parent but without details. 
For example : 

Level1 Level2leve3Visit
A  100
 B 60
  b.120
  b.220
  b.320
 C 40
  c.140


when I enter the report with b1, In my matrix I would like to see the details of 20, but in the total B I would like to see 60 for B and 100 for A, not 20. 

I'm using a simple dax for the visit : SUM (Table[Number of visit])

Thank you 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You would need to build an aggregate table to hold the totals for Level2. Have a look at https://www.sqlbi.com/articles/computing-accurate-percentages-with-row-level-security-in-power-bi/ and https://www.sqlbi.com/articles/implement-non-visual-totals-with-power-bi-security-roles/ . They should give you a good idea of how to set up the model and what measures you will need.

View solution in original post

4 REPLIES 4
v-hjannapu
Community Support
Community Support

Hi @Domenico96,

I would also take a moment to thank @johnt75  , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

Regards,
Community Support Team.

Hi @Domenico96,
I hope the above details help you fix the issue. If you still have any questions or need more help, feel free to reach out. We are always here to support you.


Regards,
Community Support Team.

Hi @Domenico96,

I wanted to follow up and see if you have had a chance to review the information that was shared. If you have any additional questions or need further clarification, please don’t hesitate to reach out. I am here to assist with any concerns you might have.

Regards,
Community Support Team.

johnt75
Super User
Super User

You would need to build an aggregate table to hold the totals for Level2. Have a look at https://www.sqlbi.com/articles/computing-accurate-percentages-with-row-level-security-in-power-bi/ and https://www.sqlbi.com/articles/implement-non-visual-totals-with-power-bi-security-roles/ . They should give you a good idea of how to set up the model and what measures you will need.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.