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 August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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