cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## Percentage measure calculation keeps giving wrong answers

Hi all,

I have been struggling with a fairly simple calculation (I'm new in DAX, but experienced in Excel).

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!!

1 ACCEPTED SOLUTION
Frequent Visitor

I have figured out the solution already. Thanks and apologies for the inconvenience!

2 REPLIES 2
Frequent Visitor

I have figured out the solution already. Thanks and apologies for the inconvenience!

Community Support

Can you share with me some screenshots of your data after hiding sensitive information?

Best regards,

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors