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 September 15. Request your voucher.

Reply
non23
Helper I
Helper I

How to get total sum per vendor

hey guys, tried to use other solutions here but won't work on my end. please let me know if I missed a step.

basically I have a table like below:

 

VendorDateSale
11/1/20245000
25/2/20243000
39/1/20014000
47/7/20234212
512/12/20123500
11/1/20011232132


I want to have a table as a visual where it will show the total sales of vendor regardless of the date. Everything is in one table. Tried to use 
Total Sales Per Vendor =
CALCULATE(
SUM(Sales[TotalSales]),
ALL(Sales[DueDate]), -- Remove any filter from Due Date
VALUES(Sales[Vendor]) -- Keep the vendor context
)

but when I changed the DueDate slicer the value also changed. 

1 ACCEPTED SOLUTION
divyed
Super User
Super User

Hello @non23 ,

 

Considering you have a single table , you can use below dax to achieve the same.

Total_Sales_By_Vendor =
CALCULATE(
    SUM(Vendor_Sales[Sales]),
    ALL(Vendor_Sales[Due_Date])
)
 
divyed_0-1729663065079.png

It will ignore due_Date filter if any

 

divyed_1-1729663202810.png

 

 

I hope this is what you wanted. If not, kindly share all tables and expected output to check further.

 

Did I answer your query ? Mark this as solution if this helps, Appreciate Kudos always 🙂

 

Cheers

 
LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @non23 ,

May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster .

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

divyed
Super User
Super User

Hello @non23 ,

 

Considering you have a single table , you can use below dax to achieve the same.

Total_Sales_By_Vendor =
CALCULATE(
    SUM(Vendor_Sales[Sales]),
    ALL(Vendor_Sales[Due_Date])
)
 
divyed_0-1729663065079.png

It will ignore due_Date filter if any

 

divyed_1-1729663202810.png

 

 

I hope this is what you wanted. If not, kindly share all tables and expected output to check further.

 

Did I answer your query ? Mark this as solution if this helps, Appreciate Kudos always 🙂

 

Cheers

 
LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1729659012530.png

 

 

Jihwan_Kim_0-1729658922217.png

 

 

expected result measure: =
CALCULATE (
    SUM ( SalesFact[Sale] ),
    ALL ( PeriodDimension[Date] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
Irwan
Super User
Super User

hello @non23 

 

try putting your 'Sales' table as ALL expression instead of 'DueDate' column.

Total Sales =
CALCULATE(
    SUM('Table'[Sale]),
    ALL('Table'),
    VALUES('Table'[Vendor])
)
 
Hope this will help.
Thank you.

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.