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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.