Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all, I'm looking to add dynamic upper and lower controls to my line chart. I'm having issues getting the standard deviation however and am wondering if its the type of data I'm using. I'm using data from 2 date columns based on work orders, one column for when the work order was raised and one for when it was completed (it's blank if it is still open). The counts have to use inactive relationships as well so they are included in the formulas:
Raised_Count = CALCULATE(count(WorkOrders[Raised]), USERELATIONSHIP(WorkOrders[Raised],'Date'[Date]))
Completed_Count = CALCULATE(count(WorkOrders[Completed]), USERELATIONSHIP(WorkOrders[Completed],'Date'[Date]))
I then take these and divide the completed count by the raised count to get the ratio between the two:
Completed as % of Raised = DIVIDE([Completed_Count],[Raised_Count])
I use
Clearance Ratio = AVERAGEX( VALUES( 'Date'[Date (bins(Months))] ) , [Completed as % of Raised])
to get the values in a table and then use
Clearance Ratio - Average = CALCULATE(AVERAGEX( VALUES( 'Date'[Date (bins(Months))] ) , [Completed as % of Raised]),ALLSELECTED('Date'[Date (bins(Months))]))
to get the 'flat' average over the time periods I specify in filters and slicers.
I don't know how to calculate the standard deviation to allow me to build the upper and lower control limits.
Hi @Thegeeza ,
Could you provide some sample data and the expected result for us to test?
Reference: How to provide sample data in the Power BI Forum
Best Regards,
Icey
@Thegeeza , refer if these can help
https://www.edureka.co/community/31365/to-calculate-the-standard-deviation-in-power-bi
https://www.youtube.com/watch?v=ekcrlfZyAhg
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
85 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |