The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Team,
I need help on creating SumProdut same as excel
Table1
Date | EUR | USD | GBP | Total |
6/1/2017 | 0.00 | -17375965.81 | 24889.80 | -17343852.99 |
6/2/2017 | 0.00 | -17375965.81 | 16.52 | -17375944.53 |
6/3/2017 | 0.00 | -17375965.81 | 16.52 | -17375944.53 |
6/4/2017 | 0.00 | 3898944.39 | 16.52 | 3898965.67 |
6/5/2017 | 1662538.33 | 1508133.98 | 93203.45 | 3499001.66 |
6/6/2017 | 9427560.61 | 432590.10 | 398.45 | 11054193.64 |
6/7/2017 | 561163.03 | 2771843.67 | 64267.92 | 3487159.96 |
6/8/2017 | -159730.24 | 1949435.12 | 555.39 | 1770920.83 |
6/9/2017 | 887221.94 | 2268106.63 | 572.13 | 3261015.88 |
6/10/2017 | 887221.94 | 2268106.63 | 572.13 | 3261015.88 |
Table 2
Date | EUR | USD | GBP |
6/1/2017 | 1.1225 | 1 | 1.2902 |
6/2/2017 | 1.1275 | 1 | 1.2881 |
6/3/2017 | 1.1275 | 1 | 1.2881 |
6/4/2017 | 1.1275 | 1 | 1.2881 |
6/5/2017 | 1.125 | 1 | 1.293 |
6/6/2017 | 1.1266 | 1 | 1.2894 |
6/7/2017 | 1.1263 | 1 | 1.2958 |
6/8/2017 | 1.1221 | 1 | 1.2946 |
6/9/2017 | 1.1183 | 1 | 1.2741 |
6/10/2017 | 1.1183 | 1 | 1.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 .
Solved! Go to 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.
@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.
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.
Thank you... This works
however, do we have an exact replica of SUMPRODUCT?
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |