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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.