Forum Discussion
DRNEWTR
4 years agoFrequent Visitor
measure ratio calculating
How can i measure Ratio of _lineamount to total _lineamount columns Like this ratio = 152/404=0,37 ??
- 4 years ago
Hi DRNEWTR
_LineAmount = SUM('Table'[LineAmount]) Total = CALCULATE(SUM('Table'[LineAmount]),ALL('Table')) Ratio = DIVIDE([_LineAmount],'Table'[Total],0)Try summing the Line Amount total by removing the filter using the All function, then divide this by the simple sum.
Let me know how you go.
Thanks James
jsaunders_zero9
Responsive Resident
4 years agoHi DRNEWTR
_LineAmount = SUM('Table'[LineAmount])
Total = CALCULATE(SUM('Table'[LineAmount]),ALL('Table'))
Ratio = DIVIDE([_LineAmount],'Table'[Total],0)Try summing the Line Amount total by removing the filter using the All function, then divide this by the simple sum.
Let me know how you go.
Thanks James