Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Calculation

Hello,

I need help with Power Bi function.
So I have columnz with many numbers that are sometimes repeated.
Factor = columnx/columny
I want to calculate column that shows factor for specific number in columnz not for row.
 columnz for 213  (2+6+15)/(2+2+3) = 3,28

columnz

columnx

columny

Factor

213

2

2

3,28

213

6

2

3,28

213

15

3

3,28

214

20

4

3,5

214

8

4

3,5

215

4

2

2

216

18

9

2,36

216

8

2

2,36


I have the biggest problem to make caclucation for specific number from columnz. Do you know how to calculate it?
Thanks,
Aleks

1 ACCEPTED SOLUTION
AntonioM
Solution Sage
Solution Sage

Hi @Anonymous ,

 

You could use this column

 

Factor = 
CALCULATE ( 
    DIVIDE (
        SUM ( 'Table'[Columnx] ),
        SUM ( 'Table'[Columny] )
    ),
    ALLEXCEPT (
        'Table',
        'Table'[Columnz] 
    )
)

View solution in original post

1 REPLY 1
AntonioM
Solution Sage
Solution Sage

Hi @Anonymous ,

 

You could use this column

 

Factor = 
CALCULATE ( 
    DIVIDE (
        SUM ( 'Table'[Columnx] ),
        SUM ( 'Table'[Columny] )
    ),
    ALLEXCEPT (
        'Table',
        'Table'[Columnz] 
    )
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.