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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
AndreasHermle
Regular Visitor

Use a different denominator for the dax computaton of the % of Grand Total

Dear Experts: 

 

I got the following Data Model: 

 

Tables:

Product Category - Product SubCategory (1:n relationship)

Product SubCategory - Product (1:n relationship)

Product - Sales (1:n relationship)

 

I created a calculated column in the Product Category Table that shows me the percentage of Grand Total Sales for Each Category.

 

% of Grand Total Sales = Divide(SUMX(RELATEDTABLE('Sales'), 'Sales'[SalesAmount]), CALCULATE(SUMX(RELATEDTABLE('Sales'), 'Sales'[SalesAmount]),ALL('Sales')))
 
The dax formula works just fine. I am just curious how the Denominator could be formulated differently, i.e. using some other DAX-function instead of Calculate.  Is this possible? 
 
Help is very much appreciated. Thank you very much in advance. 
 
Kind Regards, Andreas
1 ACCEPTED SOLUTION
AndreasHermle
Regular Visitor

Dear Experts: I found my own solution: 

% of Grand Total Sales-NEW = Divide(SUMX(RELATEDTABLE('Sales'), 'Sales'[SalesAmount]), SUMX(ALL('Sales'), 'Sales'[SalesAmount]))

View solution in original post

1 REPLY 1
AndreasHermle
Regular Visitor

Dear Experts: I found my own solution: 

% of Grand Total Sales-NEW = Divide(SUMX(RELATEDTABLE('Sales'), 'Sales'[SalesAmount]), SUMX(ALL('Sales'), 'Sales'[SalesAmount]))

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.