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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
adb123
Frequent Visitor

calculating average with condition

I need to calculate the average work orders when the "schedule end date" <= "Required date"

 

adb123_0-1649829186285.png

work orders is a text field and the 2 dates are date fields 

 

any ideas on how to calculate it?

6 REPLIES 6
adb123
Frequent Visitor

The count of work orders where the schedule end date <= to the reqired date deviced by the total count of work orders

adb123
Frequent Visitor

Hi @tamerj1  that is correct. I need a measure to caculate it. I need the average count if the condition is true 

 

Thank you @adb123 
My question was on how do you define the average? What is the numerator? Is it the count or distinct count of work order ID's (if the condition is true)? and what is the denominator?

The count of work orders where the schedule end date <= to the reqired date deviced by the total count of work orders

Hi @adb123 ,

 

Not clear,please provide some sample data and the result you expect.


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

tamerj1
Super User
Super User

Hi @adb123 

what is the average in this case? You need a measure right?

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors