Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello - I have a divide function to show on-time orders based on customer. It is currently July but the matrix shows all the way to Dec with 100% showing in the future months - here is my measure that divides the count of late by the total # of POs if they are closed and receipt date is <=today
@Anonymous , Try like
OTD% = CALCULATE(1-DIVIDE([LatePOCount],DISTINCTCOUNT(POReceiptDetail[PONumber])),filter(POReceiptDetail,POReceiptDetail[POStatus]="CLOSED",POReceiptDetail[ReceiptDate]<=TODAY()))
For example
OTD% =
var d=DIVIDE([LatePOCount],DISTINCTCOUNT(POReceiptDetail[PONumber]),0)
return if(d<>0,
CALCULATE(1-d,POReceiptDetail[POStatus]="CLOSED",POReceiptDetail[ReceiptDate]<=TODAY()))
User | Count |
---|---|
47 | |
26 | |
22 | |
17 | |
15 |
User | Count |
---|---|
55 | |
34 | |
18 | |
17 | |
15 |