Solve Weighted Averages Problem in SAP BW Warehouse

  • Thread starter BRYNEVANS
  • Start date
In summary, the conversation discusses a problem in a program that calculates a result row based on a formula. The desired result is for column E to have a sum of 92.31447, but the provided numbers and information do not give enough context to determine a solution.
  • #1
BRYNEVANS
1
0
Column-----> A------- B-------C-------D---------E
Beds------> 21.0-- 181125 - 0.0001 - 95600 -- 11.08405797
Balls------> 180 --- 39255 -- 0.0046 - 17715 -- 81.23041651
Results----> 201---220380 - 0.0009 - 113315 - 103.3501906
sum sum X/Y sum CxD
I have the above problem on a program I am writing and need the mathmatical solution to get the right results row. This program is used in the SAP BW Warehouse software. The program deliveries the above result. It calculates the the result row by the formula below the results row. What I want to get to is for column E to sum to 92.31447 and not 103.350. The program for programmable reasons cannot sum the two rows so I need to derive a formula with the figures above to get to the desired result of 92.31447
Any help will be appreciated. I am just about off my head! :bugeye:
Cannot get the formating correcthence the ---. Basically I have 5 columns A-E.
 
Last edited:
Mathematics news on Phys.org
  • #2
I THINK what you mean is that the "Results" row under the "A", "B", and "C" columns is the sum of the two numbers above it, but I have no idea what X/Y means since there is no X and Y. I also don't know what CxD means since "C" and "D" are columns of numbers, not numbers. I'm wondering how in the world the number of "Beds" could be 0.0001 or how the number of "Balls" could be 0.0046!

In any case, all you are telling us is that you WANT 92.31447 in the last column without telling us WHY or how that number is supposed to be connected with the others?? One perfectly valid formula for that result is "92.31447"- in other words whatever the other numbers put 92.31447 in that place. Without knowing what in the world you are doing or what these numbers are supposed to MEAN that's about the best we can do.
 
  • #3
Column A contains the item names, column B contains the number of beds, column C contains the weight of the beds, column D contains the number of balls, and column E contains the weight of the balls. The results row calculates the total number of items, the total weight of all items, the weighted average of the items (X/Y), and the total weight of the items multiplied by the weighted average (CxD).

To solve this problem in SAP BW Warehouse, you can use the following formula:

Weighted Average = (Sum of (Number of items * Weight of items)) / (Sum of Number of items)

In this case, for column E to sum to 92.31447, the formula would be:

92.31447 = (Sum of (Number of beds * Weight of beds) + Sum of (Number of balls * Weight of balls)) / (Sum of Number of beds + Sum of Number of balls)

Using the given data, the calculation would be:

92.31447 = ((21 * 0.0001) + (180 * 0.0046)) / (21 + 180)

92.31447 = (0.0021 + 0.828) / 201

92.31447 = 0.8301 / 201

92.31447 = 0.0041248756218905472636815920398

Therefore, to get the desired result of 92.31447 in column E, you would need to adjust the weights of the beds and balls accordingly. You can also use this formula to calculate the weighted average for any other set of data in SAP BW Warehouse.
 

1. What is a weighted average in SAP BW Warehouse?

A weighted average in SAP BW Warehouse is a statistical calculation that takes into account the relative importance or weight of different values in a data set. This is commonly used to calculate an average when some values have a greater impact on the overall result than others.

2. How do I calculate a weighted average in SAP BW Warehouse?

To calculate a weighted average in SAP BW Warehouse, you first need to assign weights to each value in the data set. Then, multiply each value by its corresponding weight and add all of these products together. Finally, divide the sum by the total weight of all values in the data set.

3. What is the purpose of using weighted averages in SAP BW Warehouse?

The purpose of using weighted averages in SAP BW Warehouse is to get a more accurate representation of the overall average when some values have a greater impact on the result than others. This can provide more meaningful insights and help with decision-making processes.

4. Can I use weighted averages in SAP BW Warehouse for any type of data?

Yes, you can use weighted averages in SAP BW Warehouse for any type of data as long as you have assigned appropriate weights to each value in the data set. This method can be used for numerical data, such as sales figures, or even qualitative data, such as customer satisfaction ratings.

5. Are there any limitations to using weighted averages in SAP BW Warehouse?

While weighted averages can provide a more accurate representation of the overall average, they are not suitable for all situations. One limitation is that they can be influenced by extreme values or outliers in the data set. Additionally, the weights assigned may be subjective and can affect the final result. It is important to carefully consider the appropriateness of using weighted averages for each specific scenario.

Similar threads

  • Advanced Physics Homework Help
Replies
3
Views
913
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
3K
  • Topology and Analysis
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Advanced Physics Homework Help
Replies
2
Views
8K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
3K
Replies
6
Views
4K
  • Calculus and Beyond Homework Help
Replies
9
Views
2K
Back
Top