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

View all the Fabric Data Days sessions on demand. View schedule

Reply
dashmarley11
Helper III
Helper III

SUMPRODUCT Measure Using Fields from Same Table

I'm trying to create a Measure that calculates the SUMPRODUCT using fields from the same table.  

Using an EXCEL layout as seen below, the formula used to calculate the ".024%" in D1 is:  =SUMPRODUCT(A3:A26, B3:B26, D3:D26) / SUMPROUCT(A3:A26, D3:D26)

 A     B       C       D
  0.19%0.24%
TermRate12MoPmts24MoPmts
10.001781440.8151239704.72307
20.001781780.1518539870.15941
30.001782120.9024840036.28508
40.001782463.0729140203.10293
50.001782806.6690540370.61586
60.001783151.6968440538.82676
70.00176666783498.1622440707.73854
80.00183333383846.0712540877.35412
90.001984195.4298841047.67642
100.00196666784546.2441741218.70841
110.00203333384898.5201941390.45303
120.002185252.2640241562.91325
130.002175041736.09205
140.00224375041909.99244
150.002319375042084.61741
160.002395042259.96998
170.002470625042436.05319
180.00254625042612.87008
190.002621875042790.4237
200.0026975042968.71713
210.002773125043147.75345
220.00284875043327.53576
230.002924375043508.06716
240.003043689.35077

 

I'm currently using the following formula in PowerBI but I'm getting different/incorrect results:

=SUMX('Table1', 'Table1'[Rate] * LOOKUPVALUE('Table1'[24MoPmts], 'Table1'[Term], 'Table1'[Term])) / SUMX('Table1', LOOKUPVALUE('Table1'[24MoPmts], 'Table1'[Term], 'Table1'[Term]))

This formula returns ".22%", but it should be ".24%".   

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @dashmarley11 ,

In that case, I suppose you don't need to include that 'Term' column in your sumproduct calculation either, and when that is removed, Power BI sumx calculation result and sumproduct calculation results are the same, although I would write dax formula in the following manner which is simpler.  

DataNinja777_0-1716336006607.png

Best regards,

 

View solution in original post

3 REPLIES 3
DataNinja777
Super User
Super User

Hi @dashmarley11 ,

In that case, I suppose you don't need to include that 'Term' column in your sumproduct calculation either, and when that is removed, Power BI sumx calculation result and sumproduct calculation results are the same, although I would write dax formula in the following manner which is simpler.  

DataNinja777_0-1716336006607.png

Best regards,

 

DataNinja777
Super User
Super User

Hi @dashmarley11 

In your Excel formula, term is also included, but I would have throught that the overall rate calculation should be based on the amount and the rates only. I'd appreciate it if you could let me know why the indexing column of "Term" should also be included in the calculation.  

DataNinja777_0-1716335312357.png

Best regards,

@DataNinja777  I'm not sure actually, that's just the exact formula that is being used in the Excel calculation but if it's not necessary to get to the correct answer then I suppose it's not applicable.

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.

Top Solution Authors
Top Kudoed Authors