Should I use weighted average vs arithmetic average in my data?
Columns(Month, Bookings, Day, Bookings/Day)
Should I do Bookings/Days OR Avg(Bookings/day) to get average by month?
You have to take Weighted Average for getting average by month
[sumof(Day's*Bookings)]/Month
Related
I have daily temperature data of a place. I need to calculate the temperature indices. need help in calculating the number of days with at least 6 consecutive days when the temperature is >90th percentile. help me with composing the formula in excel. thanks in advance!
Hello I have a question regarding some data that I have extracted into Excel. In particular the Market Depth of a Aluminium. I am trying to calculate what the average entry/exit cost would be for a set number of contracts.
I would be very appreciative of any help one could provide.
Example:
I have set the amount to 20. How could i calculate the weighted average entry price? (Assuming we lift the offer ("Buy") and Hit the Bid ("Sell")
I have pasted the format of my data below. I have been using this to limit thew Vol ("Volume") to be the amount i entered where "R4=20 ATM".
=MIN(SUM($G$3:$G$12),$R$4)
I am trying to create a formula in Excel that solves for the base number of units needed on a monthly interval with an annual growth escalator that matches in whole units the total I'm starting with. I can't from a practical standpoint have fractions.
This is an example of the formula x is number of monthly units, y is the total number of units and the desired annual growth rate is 20%. Here is the algebra butin practice only one variable will need to be solved for (x): y= 12x + (1.2x)*12+(1.2^2)*x*12+(1.2^3)*x*12. I get close using the round function but always end up a few short of the total desired due. Is there a way to add on the difference at the end formulaically?
ROUND(20000/(12+(12*(1+20%))+12*(1+20%)^2+12*(1+20%)^3),0)
I'm extremely close but I need to make sure the total by month matches the total desired.
I've been attempting to program a PowerPivot Workbook that I've been using to calculate a weighted standard deviation.
The problem is that when I use the code:
(the quality metric Q is weighted by the Product Tons for each record to get weighted statistics for variable periods [ie weeks, months, years])
Product Q-St.d:=SQRT((SUMX('Table',((([PRODUCT_Q]-[W_Avg_Q]))^2)*[TOTAL_PRODUCT_TONS]))/(((COUNTX('Table',[Production_Q])-1)*[Product Tons])/COUNTX('Table',[Production_Q])))
It calculates the [W_Avg_Q], which is the weighted average for Q, for each row as it iterates through instead of getting a weighted average for the whole context. I've learned pretty much all my DAX on the job or this site so I'm hoping there's some command to get the weighted average to calculate first. Does anyone know such a command? or another method of getting a weighted standard deviation out of DAX?
I think what you want to do is to declare [W_Avg_Q] a variable and then use it in your formula.
Product Q-St.d :=
VAR WtdAvg = [W_Avg_Q]
RETURN SQRT((SUMX('Table',((([PRODUCT_Q]-WtdAvg))^2)*[TOTAL_PRODUCT_TONS])) /
(((COUNTX('Table',[Production_Q])-1)*[Product Tons])/COUNTX('Table',[Production_Q])))
This way it gets calculated once in the proper context and then stored and reused within the formula.
I need to calculate Median Time per Activity & Average Time per Activity.
I have only total data (Total number of activities & Total time). Average I calculated simply by dividing the two. Can I calculate Median from total data or do I need individual data points?
You will need all data points, if you want to get the median of a sorted list of numbers