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
Prabhakaran2794
Frequent Visitor

Calculating the Percentage of Total

Hi Community


I am newbie to Power BI
I have a query regarding the DAX to use in order to calculate the % of Total
The Fact Table is connected to Date Table. Below is the Image where I want the percentage of Total in Matrix.

 

The Rows in Matrix contains the Product and Location to know how much of Inventory is there is respective regions like Eupore and USA in this example. I have a meausre "Total Inventory" which counts all the products like toothpaste, biscuits, chips, drinks etc. I have a Date Slicer to view only the invetory for the particular date. The Age 11+, Age 21+ and 31+ are group for aging.

 

If the Total Inventory is 5,000 for 25th October 2023 which includes toothpaste, biscuits, chips, drinks, etc. I want the matrix to return how much % does biscuits is against 5,000 Total Inventory. And If I use the measure in Values field in Matrix it must return the % for EACH age group and must respect the Date Slicer Fileter so that the % for specific date is returned. Like

 

Bicusits = 834/5000 *100
Bicusits -> Europe = 478/5000 *100
Bicusits -> Europe = 478/5000 *100

Chips = 834/5000 *100
Chips -> Europe = 478/5000 *100
Chips -> Europe = 478/5000 *100

 

Prabhakaran2794_1-1698216611404.png

 

I tried multiple filter methods and there was problem that filter only takes table total for % and not the total inventory or in another method it ignores the date slicer and returns total inventory regardless of dates being filtered. Please suggest me a solution with DAX or any other workaround to visually present this. It will be really useful for the current project I am working on.

 

Thanks in Advance.

1 REPLY 1
FreemanZ
Super User
Super User

hi @Prabhakaran2794 ,

 

try to post some data with expected result. 

 

@ImkeF wrote a fantastic article for the best way to post data to the forums: https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-....

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.