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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply

Dividing a row by the total of another column

Hello,

I hope everyone is good.

 

I have:

Chema_Ortega_Ga_0-1718017032435.png

Hello everyone. I hope you all are great!. 

The column  # Rows = COUNTROWS('QUERY SQL ROCHA DESDE 2020')

The column  # total sin late = CALCULATE([# Rows],ALL('QUERY SQL ROCHA DESDE 2020'[LATE_DELIVERY_REASON]))

 

Now I need to calculate each row of "# Rows" by the total of "# total sin late" (23.928). Anyone who knows how to do it? 

 

Thanks a lot. Best regards!

 

Chema ortega

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Chema_Ortega_Ga 

 

Please try  the following DAX:

column = 
Var _sum_sin_late = SUM('Table'[# total sin late])
RETURN 
DIVIDE([# Rows],_sum_sin_late)

 

Result:

vjialongymsft_0-1718089385210.png

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Chema_Ortega_Ga 

 

Please try  the following DAX:

column = 
Var _sum_sin_late = SUM('Table'[# total sin late])
RETURN 
DIVIDE([# Rows],_sum_sin_late)

 

Result:

vjialongymsft_0-1718089385210.png

 

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ok, thanks a lot, Jialongy!!!

 

I'll try it. Best regards,

 

Chema Ortega

ArtisanAmbrosia
Frequent Visitor

There may be context missing with a simple solution like this, but have you tried something like:

 

Rows by Total =
VAR Rows =
 COUNTROWS('QUERY SQL ROCHA DESDE 2020')

VAR totalsinlate = CALCULATE([# Rows],ALL('QUERY SQL ROCHA DESDE 2020'[LATE_DELIVERY_REASON]))

RETURN

DIVIDE(Rows, totalsinlate)

Ok, thanks a lot, artisan!!!

 

I'll try it. Best regards,

 

Chema Ortega

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.