Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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.
Thanks in advance!!
Solved! Go to Solution.
@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'))
Hey @ashish_18, give this a try, and if you encounter any issues, let me know.
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.
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 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'))
Glad it worked! Feel free to reach out by mentioning me if you need more help!
Index is also regular column like BR Cost . Burn Rate is measure
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)
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.
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.
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])
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |