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
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
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.