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! Request now

Reply
DebbieE
Community Champion
Community Champion

Percentage in a Matrix with hierarchies totalling 100% down a column

I have the following issue

From Dim Date 'Year and Month' in Columns 

Values % People

And in Rows I have 5 Hierarchies all from the same dim. 

 

     2021  2022  
     JanFebMarJanFebMar
Top Level    10.51%
 Level A Item 1   0.91%
  Level B Item 1  0.16%
   Level C Item 1 0.14%
    Level D Item 10.08%
    Level D Item 20.03%
    Level D Item 30.02%
     
     
    Total10.51%10.68%10.85%   

 At the moment with my % DAX

 

% of People =
DIVIDE (
    COUNT('Fact'[personKey]),
    CALCULATE (COUNT('Fact'[personKey]),
        ALLSELECTED ()
    )
)
 
It seems to be creating the Percentage across the columns.
But the Totals I am getting for the whole year and Month in the column arent coming out at 100%
So I dont want to know the percentage for the Row Filter across year and Months (Columns) 
I want to know the percentage across all the row filters for the one Academic year and month
 
I just dont know how to go about creating a % for this? 
 
Anyone have any ideas on this one?
2 REPLIES 2
amitchandak
Super User
Super User

@DebbieE , You need removefilter from the date table

 

% of People =
DIVIDE (
COUNT('Fact'[personKey]),
CALCULATE (COUNT('Fact'[personKey]),
ALLSELECTED ('Date')
)
)

 

or

 

 

% of People =
DIVIDE (
COUNT('Fact'[personKey]),
CALCULATE (COUNT('Fact'[personKey]),
ALLSELECTED (Table[Year], Table[Month])
)
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Unfortunately this isnt working for me.  And will confuse the report readers. I have changed the % Measure

 

I tried it with the date in in ALLSELECTED.

I tried it with the month and Year in ALLSELECTED

And I tried it with just the date table in ALLSELECTED

 

Now I get 9.97% as the total and the % of the top level group when it should be 100%

at the Level 2 level all he % Sum up to 119% which isnt correct either. So this isnt working for me

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors