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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Display total value based on Hierarchy slicer selection

I have a hierarchy table and would like to display total based on what level the slicer is selected.

 

Sample.gif

 

If all Level 3 (Division) checkboxes selected, display sum of Level 2 (BU) total across all groups

If all Level 2(BU) checkboxes selected, display sum of Level 1(Group) total across all group

If not all Level 3 checkboxes selcted (regardless of BU), display selected Level 3 (Division) total across all BUs

If not all Level 2 checkboxes selcted (regardless of Group), display selected Level 2 (BU)total across all groups.

Below are some examples:

If Audit, SPU, YAD selected, display sum of (Audit, SPU, YAD)

If 7JB and F8C selected, display sum of (7jb and f8c)

If OC9 selected and Audit selected, display sum of (DIM, TIF and Audit)

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

I made a test based on your example, But I can get what you stated.So, i don't understand what's matter with you.

 

Best Regards

Maggie

Anonymous
Not applicable

Maggie I'm not sure if you read my post fully. Look at the example and the slicing selection. I know how to do a basic agg based on slicer selection. This is more complex.  There are three totals (Group, BU and Division)  I have gotten other feedback and I was able to get part of the solution working. Below are some examples:

 

1.  If Audit, SPU, YAD selected, display sum of (Audit, SPU, YAD) (Division Total)

2.  If 7JB and F8C selected, display sum of (7jb and f8c) - BU Total value (Note** This is NOT the sum of all children under that BU)

3.  If OC9 selected and Audit selected, display sum of (DIM, TIF and Audit)

Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, you might want to check out my Quick Measure, Matrix Measure Total Triple Threat Rock & Roll as it might give you some ideas on how to get what you are looking for:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Matrix-Measure-Total-Triple-Threat-Rock-amp-...

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Greg

 

Thanks for the feedback.  I go tthe total to add up at the Group level havig issues keeping the total at the bottom levels.  I've updated the post with example and an updated screenshot of the report.

 

Any input would be appreciated.

 

Thanks

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.