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
MohammadAziz
New Member

Hey folks

I have below table (table A1) I want to get the total of "Number of Failed" repeated in each row of the "fail%ofTotalFail" the variable "Failed%" is the percentage of failed of the "Total Order" 1,2,3,4,5,6,7 rows fail, in other word, the percentage of a category failed, for "fail%ofTotalFail" I want to know what percentage the observation [1, 96027, 7189, 7.49%] and so on makes of the Total "Number of Failed".

 

fail%ofTotalFail = CALCULATE(SUM(A1['Number of Failed'], ALL())) does not work.

 

MohammadAziz_1-1672961596644.png

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @MohammadAziz 

You can try the following code:

fail%ofTotalFail = CALCULATE(SUM(A1['Number of Failed'], ALL(A1)))

 

Best Regards!

Yolo Zhu

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

2 REPLIES 2
Anonymous
Not applicable

Hi @MohammadAziz 

You can try the following code:

fail%ofTotalFail = CALCULATE(SUM(A1['Number of Failed'], ALL(A1)))

 

Best Regards!

Yolo Zhu

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

jewel_at
Resolver I
Resolver I

try this?

 

Measure 2 = 
CALCULATE(SUM('Table'[AllTotalFail]), ALLSELECTED('Table'))

 

Let me know if it works!

 

 

Jewel

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.