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
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
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.