The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
26 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
30 | |
14 | |
12 | |
12 | |
7 |