0 Replies Latest reply: Jan 2, 2012 3:00 PM by Tor Olav Alme RSS

    Table showing weighted averages in columns and rows?

      Dear Gents,


      Being very new to QlikView development, I am forced to ask for some help to solve a challenge. I hope and think it should not be very complicated; still, I am stuck...


      I have sales of a product. The comes in different size categories. In my excel setup, I have the different sizes in the columns. Sales volumes of each size category (product) is available in a variable in my report. Achieved price is available as turnover (variable) divided by sales volume. Reference price is joined in by an Excel file, one value for each size category of the product. Finally, achieved price is calculated as achieved price minus reference price.


      For each column (each size category) all these variable should be shown. On the far right column, there should be sums / weighted averages (using volumes as keys for averages).


      Finally, there will be many customers, and the total sum of the columns, should be weighted averages (by volume again) in each column.


      I have included an example file, showing how I used to do this in Excel (using a pivottable to present data from a dump from Business Objects).


      I am unsure whether to use a simple table or pivot to achieve the layout and content I am after.


      Very grateful for any advice / recipe to put me on track.



      Example layout, full report with many customers

      Customer NameData010020020030030040040050050060060070070000Grand Total
      Dummy 1Volume1 78537 779158 299383 938162 654

      744 455

      Achieved Price26,7033,1436,0836,6037,10


      Reference Price24,7932,3436,3237,0538,18


      Achieved vs Reference1,910,81-0,23-0,45-1,08

      Dummy 2Volume
      13 7921 520113 805338 132186 36285 452739 065

      Achieved Price

      Reference Price

      Achieved vs Reference
      Dummy 3Volume
      9 54659 49458 224256 01276 34617 163476 785

      Achieved Price

      Reference Price

      Achieved vs Reference
      1 78561 118219 313555 967756 798262 708102 6161 960 305
      Achieved  Price
      Reference  Price
      Achieved vs  Reference





      Tor Olav Alme