Forum Discussion
Sum of Divided Columns
- Anonymous4 years ago
Hi Anonymous ,
Make sure [C] is a calculated column with logic [A] / [B] in Power BI. Then you can aggregate it in visual like table by sum function in value field. If [C] is a measure, you need to sum the measure or create avirtual table to calculate [C] to get the result you want.
Calculated column:
C = DIVIDE( 'Table'[A],'Table'[B])Result is as below.
Measure:
C = VAR _ADD = ADDCOLUMNS('Table',"C",DIVIDE([A],[B])) RETURN SUMX(_ADD,[C])Result is as below.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Make sure [C] is a calculated column with logic [A] / [B] in Power BI. Then you can aggregate it in visual like table by sum function in value field. If [C] is a measure, you need to sum the measure or create avirtual table to calculate [C] to get the result you want.
Calculated column:
C = DIVIDE( 'Table'[A],'Table'[B])
Result is as below.
Measure:
C =
VAR _ADD = ADDCOLUMNS('Table',"C",DIVIDE([A],[B]))
RETURN
SUMX(_ADD,[C])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.