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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Parameters Values to display ALL

I have a hierarhcy (with look-up tables) for Category and Sub-Category.

 

I want the Higher level hierarchy to show all total values for the Lower level hierarchy  values as shown below.

 

 

All Levels.JPG

I can't use "sub-totals" from the matrix definitions because actual for Sales Type 1,2,3 are values and Type 4 is a Pct. (I handled this via DAX). 

 

Category -- Sales Type 1 should be Sub Category 1(Sales type 1) + Sub Category 2 (Sales type 1) etc.

 

I can achieve this by creating 2 visuals on the panel with different levels, but users want to be able to export the entire visual together.

 

Any ideas?

 

1 REPLY 1
v-lili6-msft
Community Support
Community Support

HI, @Anonymous 

In my understanding, if you sample like this:

1.JPG

Then add a hierarhcy number for hierarhcy column

2.JPG

 

Then create a measure as below:

Measure = 
IF (
    SELECTEDVALUE ( Table1[H] ) = 1,
    CALCULATE (
        SUM ( Table1[Qty] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            (
                Table1[H]
                    = MAX ( Table1[H] ) + 1
            )
                && Table1[Type] = SELECTEDVALUE ( Table1[Type] )
        )
    ),
    CALCULATE ( SUM ( Table1[Qty] ) )
)

Result:

3.JPG

If it is not your case, please share pbix file or some data sample with the data structure and expected output. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors