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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to multiple sum to measure with each value of column

HI Team,

I am trying to multiple Index column with measure burn rate (147,276.33)   i.e  1* 147,276.33, 2*147,276.33,3*147,276.33 and so on

as a measure . DAX not allowing me multiplication of 1 column and sum of measure... Can you please advise.

 

 

ashish_18_0-1723495338903.png

Thanks in advance!!

2 ACCEPTED SOLUTIONS

@Anonymous Since BurnRate is a measure and not a column, the error is occurring because you’re trying to use it in a context that expects a column reference.

If there is any error, let me know.

MultipliedIndexByTotalBurnRate = SELECTEDVALUE('New'[Index]) * CALCULATE([BurnRate], ALL('New'))


 

View solution in original post

Anonymous
Not applicable

HI @ahadkarimi   This solution worked for me.. Thanks for your help again!!

View solution in original post

15 REPLIES 15
ahadkarimi
Solution Specialist
Solution Specialist

Hey @Anonymous, give this a try, and if you encounter any issues, let me know.

ahadkarimi_0-1723520231975.png

you can download PBIX file here.

Anonymous
Not applicable

HI @ahadkarimi  Thansk for your input. I need each Index value to be mulipled by total sum of burn rate i.e.i.e  1* 147,276.33, 2*147,276.33,3*147,276.33 and so on

In you case,index value is multiplying by each value of burn rate. 

 

Hi @Anonymous, try this one and if there's any problem let me know.

ahadkarimi_0-1723562492016.png

you can download the new version from here.

Anonymous
Not applicable

HI @ahadkarimi  can you plz share the code...Its asking to download latest pbi verison which is not allowed as of now.

@Anonymous , there are two measures.

TotalBurnRate = SUM(MyTable[BurnRate])

 

MultipliedIndexByTotalBurnRate = 
SELECTEDVALUE(MyTable[Index]) * CALCULATE(SUM(MyTable[BurnRate]), ALL(MyTable))

 

Anonymous
Not applicable

HI @ahadkarimi , [BurnRate] is calculated measure and your code expecting it as column so giving below error. If I use SUMX then it give cartecian product and wromg value

 

ashish_18_0-1723565025947.png

 

@Anonymous Since BurnRate is a measure and not a column, the error is occurring because you’re trying to use it in a context that expects a column reference.

If there is any error, let me know.

MultipliedIndexByTotalBurnRate = SELECTEDVALUE('New'[Index]) * CALCULATE([BurnRate], ALL('New'))


 

Anonymous
Not applicable

HI @ahadkarimi   This solution worked for me.. Thanks for your help again!!

Glad it worked! Feel free to reach out by mentioning me if you need more help!

@Anonymous is there BurnRate in New table?

can you share your Data like below?

ahadkarimi_0-1723565342050.png

 

Anonymous
Not applicable

ashish_18_0-1723565508383.png

Index is also regular column like BR Cost . Burn Rate is measure

Irwan
Super User
Super User

hello @Anonymous 

 

please check if this accomodate your need.

Multiple Sum =
var _Total = CALCULATE(SUM('Table'[BurnRate]),ALL('Table'))
Return
SUMX('Table','Table'[Index]*_Total)

Irwan_0-1723508532662.png

 

What you are looking is a SUMPRODUCT calculation in excel, so below is excel SUMPRODUCT to verify the result.

The calculation result in power bi matches to calculation result in excel below.

Irwan_1-1723508682181.png

 

 

Hope this will help you.

Thank you.

 

Anonymous
Not applicable

Hi @Irwan ,

 Thanks for looking into this. I have tried with this code but BurnRate is measure in table and your code looks for column in table. Its giving below error. ALso 'New' is table name , [Index] is regular column and BurnRate is measure.

 

ashish_18_0-1723520647704.png

 

hello @Anonymous 

 

as you can see in my DAX above, _Total is a measure DAX for BurnRate sum.

so if you have separate measure for BurnRate sum, then you can directly use that measure instead of using var _Total.

here is measure for BurnRate sum:

Sum BurnRate = CALCULATE(SUM('Table'[BurnRate]),ALL('Table'))

and here is measure for SUMX index and BurnRate sum

Multiple Sum = SUMX('Table','Table'[Index]*[Sum BurnRate])

Irwan_0-1723521992288.png

the result is same.

 

Hope this will help you.

Thank you.

 

Anonymous
Not applicable

HI @Irwan 

 

IN first measure "Sum BurnRate" itself its giving error. Calculate(SUM ()) function expect regular column of table . In my case,"BurnRate" is calculated measure so this formula is not working and giving error as below. When tried with SUMX,it gives cartesian product and wrong value.

 

 

ashish_18_0-1723558656633.png

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.