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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

SumProduct DAX formula needed

Hi Team,

 

I need help on creating SumProdut same as excel

 

Table1

 

DateEURUSDGBPTotal
6/1/20170.00-17375965.8124889.80-17343852.99
6/2/20170.00-17375965.8116.52-17375944.53
6/3/20170.00-17375965.8116.52-17375944.53
6/4/20170.003898944.3916.523898965.67
6/5/20171662538.331508133.9893203.453499001.66
6/6/20179427560.61432590.10398.4511054193.64
6/7/2017561163.032771843.6764267.923487159.96
6/8/2017-159730.241949435.12555.391770920.83
6/9/2017887221.942268106.63572.133261015.88
6/10/2017887221.942268106.63572.133261015.88

 

Table 2 

 

DateEURUSDGBP
6/1/20171.122511.2902
6/2/20171.127511.2881
6/3/20171.127511.2881
6/4/20171.127511.2881
6/5/20171.12511.293
6/6/20171.126611.2894
6/7/20171.126311.2958
6/8/20171.122111.2946
6/9/20171.118311.2741
6/10/20171.118311.2741

 

as for the sumproduct  in excel, it works as an array and calculates Table1.EUR * Table2.EUR and gives the result, similarly it calculate for other columns and give the sum of all the values. however, I am unable to replicate this in DAX. 

 

The output should be Table1. Total

 

Please help .

1 ACCEPTED SOLUTION

@Anonymous there is may ways to do this, assuming these two tables are related on date with 1 to 1 relationship, you can add following column:

 

Total = 
(Table6[EUR] * RELATED( Table7[EUR] ) ) +
(Table6[GBP] * RELATED( Table7[GBP] ) ) +
(Table6[USD] * RELATED( Table7[USD] ) )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous is date unique in both tables?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Yes 

@Anonymous there is may ways to do this, assuming these two tables are related on date with 1 to 1 relationship, you can add following column:

 

Total = 
(Table6[EUR] * RELATED( Table7[EUR] ) ) +
(Table6[GBP] * RELATED( Table7[GBP] ) ) +
(Table6[USD] * RELATED( Table7[USD] ) )


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank you... This works


however, do we have an exact replica of SUMPRODUCT? 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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