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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors