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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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