Skip to main content
cancel
Showing results for 
Search instead 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

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
Europe Fabric Conference

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.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors