Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all,
I have been struggling with a fairly simple calculation (I'm new in DAX, but experienced in Excel).
Can someone please help me with the following and also explain to me why I keep getting incorrect answers?
I am trying to measure whether client assessments within our business are being done on time.
Once the system opens the assessment, employees have 14 days to finish it. I therefore add 14 days to the starting date, being the due date. Then, once the assessment is completed, the finish date is logged. after the due date, the assessment becomes overdue.
To measure the timeliness on a monthly basis, I have produced status labels based on these conditions for the first day of the month.
When an assessment is not created yet OR open on 1 aug AND closed on time on 1 sep, I know that it was finished too late. I want to calculate the percentage of Assessments closed on time / Total assessments closed.
To do so, I have been trying the following formula to create a measure of the timeliness of August (i.e. 1 aug- 1 sep)
// proportion closed on time
(COUNTAX(FILTER('AssessmentData',
AND([Status 1 SEP 22]="Closed on time",
OR([Status 1 AUG 22]="Open on time",
[Status 1 AUG 22]="Non-existent"))),
'AssessmentData'[Status 1 AUG 22]))
//total closed
(COUNTAX(FILTER('AssessmentData',
AND([Status 1 SEP 22]="Closed on time",
OR([Status 1 AUG 22]="Open on time", [Status 1 AUG 22]="Non-existent"))),
'AssessmentData'[Status 1 AUG 22])
+
COUNTAX(FILTER('AssessmentData',
AND([Status 1 SEP 22]="Closed overdue",
OR([Status 1 AUG 22]="Open overdue",
[Status 1 AUG 22]="Non-existent"))),
'AssessmentData'[Status 1 AUG 22])
)
Help is MUCH appreciated. Thanks in advance!!
Solved! Go to Solution.
I have figured out the solution already. Thanks and apologies for the inconvenience!
I have figured out the solution already. Thanks and apologies for the inconvenience!
Hi @Anonymous ,
Can you share with me some screenshots of your data after hiding sensitive information?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |