Forum Discussion
NadiaHap
3 years agoFrequent Visitor
column sum incorrect
Hello everyone! I'm having a problem with the column sum being calculated incorrectly. I need to find value 2 (J2), formula =1/SUM(G2:G4)/(1+I2)-1 But for this, need to correctly calculat...
- 3 years ago
v-yueyunzh-msft
3 years agoCommunity Support
Hi, NadiaHap
According to your description, the Total in the [% budget/ discount 3/discount 1] measure is not you need. You need to get the sum of the value . Right?
Here are the steps you can refer to :
(1)This is my test data:
The [% budget/ discount 3/discount 1] measure in my side is look like this:
% budget/ discount 3/discount 1 = var _dis3 = MAX('Table'[discount 3])
var _dis1 = MAX('Table'[discount 1])
return
[% budget]/(_dis3+1)/(_dis1+1)
(2)Then we can create another measure based on this measure:
% budget/ discount 3/discount 1 End result = var _t =SUMMARIZE(ALLSELECTED('Table'),[Month],"% budget/ discount 3/discount 1",[% budget/ discount 3/discount 1])
return
IF(HASONEVALUE('Table'[Month]) , [% budget/ discount 3/discount 1] , SUMX(_t,[% budget/ discount 3/discount 1]))
(3)Then we put this measure on the viusal , we can get the Total you want in the end:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly