"average"
15 TopicsHelp Calculating Average Excluding 2 Conditions
I have an existing DAX measure which gets average of completed fields in the "Master AE" table (there's 35 required fields): [EPIC %] = CALCULATE( DIVIDE([EPIC Points], COUNTROWS('Master AE')*35)) The current measure gives this output on my KPI cards, which is correct: However, I need to modify it to get a new average that EXCLUDES any rows where Master AE [EPIC Points Count] is <=17 AND the Master AE [Quarter] is > 2. Or basically, exclude any results from EPIC % measure result <= 49% AND Quarter > 2. The desired result average should be 40.28% (only 10 values would be averaged per the conditions) Any idea how I can do this? Here is the [EPIC points] measure which sums all the points assigned when blanks completed: Appreciate any help!Solved1.1KViews0likes5CommentsAverage based on Filter
I am trying to get the average of project completions per week and then when I am changing the filter as what weeks I am seeing that the average would be tied into this filter. It is currently do the completion average for all the data which is this. Average = CALCULATE(COUNT('CP Jobs'[Project]),ALL('CP Jobs'))/CALCULATE(DISTINCTCOUNT('CP Jobs'[Year-Wk]),ALL('CP Jobs'))373Views0likes2CommentsDistinct Count ignoring one column plus calculate average
Hello, all! I have the following table And im trying to get a simple DISTINCT COUNT[ID] but its not working because the column Type has two different values (B and E). If i use a mesure, it works BUT im trying to use a Column because after i get the distinct count, ill need get the average. Like the example below: In short, i need to get the average of distinct count[id]. Ive tried create a column with CALCULATE(DISTINCTCOUNT(Consult[id]) / DISTINCTCOUNT(Consult[date].[Month]), ALLSELECTED(Consult[date].[Day])) But its not working because its counting the same ID twice when the ID has the B and E type. If there is a way to get the column average that i need using a measure, ill be glad to learn how. Thanks!Solved714Views0likes1CommentAverage Between Three Dates Versus Main Date
I am creating a dashboard to show the days between(Lag) the latest of three different date columns versus the main date(Physical Date) column. Now I need to find the average days between those three different date columns versus the main date(Physcial Date) column and present it in a visual like a bar or line chart. Example: Product Order was placed and shipped(Physical Date)and it goes into either three different date column flows: 1) Submission Date(Meaning it is the normal price and it goes straight to invoicing) 2) Price Approved Date(The product has a special price so that price needs to get approved before it goes to invoicing) 3) Terms Approved Date(The product price has different terms than normal so that needs to be approved) They want to know how many days it took to move between main date(Physical Date) to Price approved date, or between Main Date (Physical Dat)e to submission date etc. Currently I am using a calulcated column to find the last date of the three dates compared to the main date(Physical Date) in days. DaysBetween Lag Column = VAR _pDate = SELECTEDVALUE('TABLE1'[Physical Date]) VAR _paDate = SELECTEDVALUE(Table1[PriceApproved.date]) VAR _taDate = SELECTEDVALUE(Table1[Terms Approved Date]) VAR _sDate = SELECTEDVALUE('Table1'[Submission.date]) VAR _maxDate = MAX(MAX(_paDate, _taDate), _sDate) RETURN DATEDIFF(_pDate, _maxDate, DAY) That column displays in a table like this: They are wanting to group by the latter of the three dates (Price Approved Date, Submission Date, Terms Approved Date) versus physical Date and then get the average of that. The average part is what I am needing help with. Any suggestions please? Data Table is just sample data. Please Note: The three dates (Submission Date, Price Approved Date and Terms Approved Date) will not always have a value depending on what "flow" the item went into it after it was shipped. Dangar332 or anyone else...Any suggestions Please? Thank you in advance! Product ID Physical Date Submission Date Price Approved Date Terms Approved Date 24567 1/4/2024 1/7/2024 676742 1/6/2024 1/10/2024 42516 1/15/2024 1/26/2024Solved575Views0likes2CommentsTrying to get the Average of the count of items
We have a table. it has many values in but some of the values are these: DCP-Data Service Date CODE Shift 1/2/2023 99154 Afternoon 1/2/2023 99154 Evening 1/3/2023 99154 Afternoon 1/3/2023 99154 Afternoon 1/2/2023 99154 Evening 1/2/2023 99202 Afternoon What we need to know is the average number of times this particular code has been used over a period of time. We may filter by shift but we may also filter by date or pay period (a month at a time) I created this measure based on some research: AvgCode = AVERAGEX(VALUES('DCP-Data'[SERVICE DATE]), calculate(count('DCP-Data'[CODE]))) What ended up happening, though, is for the given period we looked at (a month in this case) it only selected the values in the month and averaged the times it was used only. So, above example, 99154 was used on two days five times that was 2.5 times on average. It ignored the line with 99202 in it. What I really need is out of every day in that month (1/1 - 1/30) how many times on average was that used? In this example it would be < 1 time. If I'm slicing on the shift name, then it wold adjust accordingly to tell me how many times in the month just for that shift. I can't figure out how to do that. I tried using just the table and not "SERVICE DATE" in the first values but that messed things up even more. Can anyone think of what can be done?633Views0likes3CommentsLine-to-line amplitude
Friends good night. Help me solve an issue that I'm not able to solve. Image a table with two columns In one analysis and in the other results. For example: Analysis column - Result column Turbidity - 1.0 Color - 6.0 Ph - 7.0 Conditionivity - 147 Turbidity 1.2 Color - 6.2 Color - 6.6 Ph - 7.2 There are several mixed analyses. How would I calculate the amplitude line by line according to a filter applied in a data segmenter. Type: If I select COLOR, Bi makes an imaginary column with the color values and calculates it like this: Color - "Imaginary Table" 6.0 - null 6.2 - 0.2 (6.2-6.0) 6.6 - 0.4 (6.6-6.2) And finally, return to the average of these values (0.3)Solved483Views0likes2CommentsHow to get average of monthly values for per year per category
My dataset looks like the below, I have created a matrix visual as below, The values in the matrix visuals are distinctcount of the ids. Now, I want to calculate the average value of the red boxes (i.e.) the average of monthly values for each year for each category. How can I get this in DAX?Solved905Views0likes2CommentsAverage multiple columns with some of the column value is not numeric
Hello There I have several columns in my table, lets say just like this below A B C 1 1 1 1 0 1 - 1 I create calculation column after column C with calculate average of column A, B & C. average of first row is 100%, since the calculation is (1+1+1)/3 which is correct average of second row is 50% because even second row of column B is blank, by using regular average it will ignore blank cell, so the calculation is (1+blank+1)/2 which also correct average of third row is error, since value on column B is "-" which is non numerical i've tried using iferror syntax which convert "-" become 0, but then the calculation become 66.67% because the calculation will be like this (1+0+1)/3, I want the result is 100% because the calculation should be like (1+1)/2, ignoring the "-" Any help? thanks a lotSolved1.1KViews0likes4Commentscalculate cycle times, get an average excluding top 15%
In a manufacturing setting I have a pick started and pick completed time/date stamps, i have subtracted them from one another to get the duration or cycle time. I am trying to build a report to get the average which i did using a measure however my data is skewed due to some outlier times and i would like to exclude the top 15% without removing the data. I know i can do it with if functions within excel but i am racking my brain with DAX.Solved816Views0likes2Comments