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
Alex_Hasan
Helper II
Helper II

Total sales is not equal to All sales while calculating percentage

Hello, this is the problem I am having right now.

I am practicing AdventureworksDW 2019.

Capture.JPG

From accounting point of view, the Total sales would be  = sales amount+ tax+ freight [ you know that all costs related to sales must be added up]. so the amount we get is $17,727,276.

 

Now, when I calculate All Sales =  CALCULATE([Total Sales], All(Sales)) - Sales is the table name here, the number should be $17,727,276.  But here it's not the case. what should I do to solve this? 

 

all sales.JPG

 

1 ACCEPTED SOLUTION
Whitewater100
Solution Sage
Solution Sage

Hi:

If your data has sales for more than one year, using "ALL" will take filters away and give you grand total for everything. Since you are filtering on Name, is it possible that some transactions do not have a name associated with them?

You can test by putting these two measures in a separate card and comparing. [Total Sales] should equal ALL sales if no filters are applied to [Total Sales].

 

I hope this helps!

View solution in original post

3 REPLIES 3
Alex_Hasan
Helper II
Helper II

Thank you so much, it worked 🙂.

You are welcome. 

Whitewater100
Solution Sage
Solution Sage

Hi:

If your data has sales for more than one year, using "ALL" will take filters away and give you grand total for everything. Since you are filtering on Name, is it possible that some transactions do not have a name associated with them?

You can test by putting these two measures in a separate card and comparing. [Total Sales] should equal ALL sales if no filters are applied to [Total Sales].

 

I hope this helps!

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.