Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
How can i measure Ratio of _lineamount to total _lineamount columns
Like this
ratio = 152/404=0,37 ??
Solved! Go to Solution.
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
Hi,
Try this measure
Line amount = sum(Data[_lineamount])
Line amount total = calculate([line amount],all(Data[_skuname]))
Ratio = divide([Line amount],[Line amount total])
Hope this helps.
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |