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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ashish_18
Helper III
Helper III

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

@ashish_18 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

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 @ashish_18, give this a try, and if you encounter any issues, let me know.

ahadkarimi_0-1723520231975.png

you can download PBIX file here.

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 @ashish_18, try this one and if there's any problem let me know.

ahadkarimi_0-1723562492016.png

you can download the new version from here.

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

@ashish_18 , there are two measures.

TotalBurnRate = SUM(MyTable[BurnRate])

 

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

 

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

 

@ashish_18 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'))


 

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!

@ashish_18 is there BurnRate in New table?

can you share your Data like below?

ahadkarimi_0-1723565342050.png

 

ashish_18_0-1723565508383.png

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

Irwan
Super User
Super User

hello @ashish_18 

 

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.

 

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 @ashish_18 

 

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.

 

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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