This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hey folks,
Trying to divide one value in a column by another not having any luck...
Thanks in advance!
Solved! Go to Solution.
Hi @Hudg16 ,
You will need to create this as a Measure, and not a calculated column, the calculated column is evaluated in the contex of each row in the underlying table rows, and each row has a [new] value of 1. In other words the spend on each row is being divided by 1 for each row when the column is created and when the model is processed, then the matric sums up the value in the already computed column value, nets to the same value as spend. The Measure will be evalutated in the context of the filter, query and visual. I am not likely providing a great explanation, here is are links to a couple good article for your review.
https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/
see results below
Proud to be a Super User!
Hi @Hudg16 ,
Assuming you are creating a measure, the formula would look like
Avg New Activation Spend = Divide(sum(Data[New Activiation Spend]), sum(Data[New]))
Proud to be a Super User!
Hi @Hudg16 ,
Can u create two measures:
Act Spend = sum(Data[New Activiation Spend])
New Act = sum(Data[New])
then add those to the Matrix, would like to see the values they generate
Proud to be a Super User!
Hi @Hudg16 ,
Can you provide a link to a sample pbix file or sample data and a screen shot of your model, sample file would be best
Proud to be a Super User!
@richbenmintz Pbix is attached, ive just narrowed it down to new in this case. Thanks for your help
https://we.tl/t-zGeqYH87GO
Hi @Hudg16 ,
You will need to create this as a Measure, and not a calculated column, the calculated column is evaluated in the contex of each row in the underlying table rows, and each row has a [new] value of 1. In other words the spend on each row is being divided by 1 for each row when the column is created and when the model is processed, then the matric sums up the value in the already computed column value, nets to the same value as spend. The Measure will be evalutated in the context of the filter, query and visual. I am not likely providing a great explanation, here is are links to a couple good article for your review.
https://www.sqlbi.com/articles/row-context-and-filter-context-in-dax/
see results below
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |