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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors