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

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

Reply
RWehr2306
Frequent Visitor

Dax Help

I got my % PO Lines Correct with the below Dax formula, 

% PO Lines = CALCULATE('ERP PO Items'[PO Lines]/'ERP PO Items'[PO Lines (Total)])
PO Lines = DISTINCTCOUNT('ERP PO Items'[PO Item])
PO Lines (Total) = CALCULATE([PO Lines],ALLSELECTED('ERP PO Items'))

RWehr2306_0-1657809282020.png

 

Now Im trying to just get the % Not Late and I cannot figure out how to do it in dax. 

This is what I tried and it should be the same as 67% but Im returning 72%. 

Not Late = CALCULATE(COUNT('ERP PO Items'[OTD Status]),'ERP PO Items'[OTD Status] = "Not Late")
% Not Late2 = CALCULATE([Not Late]/[PO Lines (Total)])
 
Thank you so much for the help. 
 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Not Late = CALCULATE([PO Lines],'ERP PO Items'[OTD Status] = "Not Late")

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Try

Not Late = CALCULATE([PO Lines],'ERP PO Items'[OTD Status] = "Not Late")

That Work.. Thank you so much for your help.. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.