Forum Discussion
Anonymous
2 years agoNot applicable
dividing row values with subtotal
i want to divide each row of TY_Actual with its subtotal i.e 110679.54 to get the %. i created 1 measure and it was showing correct value but the catch was the value was getting displayed in total ro...
- 2 years ago
Hi, Anonymous
sorry, in above code there are some changes needed and i forgot to write it
try below coderesult = var a = sum('yourtablename'[TY_Actual]) var b = calculate ( sum('yourtablename'[TY_Actual], removefilters('yourtablename') ) return divide(a,b)if it not work then provide some sample data
Dangar332
Resident Rockstar
2 years agoHi, Anonymous
try below code
just adjust your table and column name
result =
var a = sum('yourtablename'[TY_Actual])
var b = calculate ( sum('yourtablename'[TY_Actual],
removefilters('yourtablename')
)
return
divide (a,b)
Anonymous
2 years agoNot applicable
not working
- Dangar3322 years ago
Resident Rockstar
Hi, Anonymous
sorry, in above code there are some changes needed and i forgot to write it
try below coderesult = var a = sum('yourtablename'[TY_Actual]) var b = calculate ( sum('yourtablename'[TY_Actual], removefilters('yourtablename') ) return divide(a,b)if it not work then provide some sample data
- Anonymous2 years agoNot applicable
Thank You so much....