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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
v-denglli-msft
Community Support
Community Support

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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