Forum Discussion

rajibmahmud's avatar
rajibmahmud
Helper III
8 years ago

Cost calculation from Bottomup

Hi Team,

 

I am trying to calculate a cost using bottom up method at monthly level.

 

Where cost would be Vol sold in Month 1, multiplied by Cost in month 1 at Product Level. The total year cost would be Month 1 vol * month 1 cost + Month 2 vol * month 2 cost .... this way.

 

And the Brand cost would be sum of this from bottom up. However when ever I tried to do it using calculate, the Full year number is Cost of 1 + Cost of 2 ... * total volume, which is incorrect. I am attaching PBI file, can someone guide me on this.

 

Below is the link

 

https://1drv.ms/f/s!AuSkszFGzDQzjSL9CxVCzI8VXYGN

 

 

13 Replies

  • If you have vol. and cost column in your table use Sumx

     

    Total_Cost:=(Table,[vol]*[cost]). This should end up as supposed.

    Due to company restrictions I am not able to check out your provided link.

    So maybe just some information of your data structure would be fine.

     

    Best regards.

    • rajibmahmud's avatar
      rajibmahmud
      Helper III

      Floriankx

       

      The source data's are in 2 different table. I couldnt connect those using Sumx for some reason, although the tables are connected via relation.

       

      Data would look like below:

       

      YearMonthChannelSKUValueMeasure

      20171RuralAAA57Volume
      20172RuralAAA51Volume
      20173RuralAAA56Volume
      20174RuralAAA39Volume
      20175RuralAAA51Volume
      20176RuralAAA51Volume
      20177RuralAAA57Volume
      20178RuralAAA53Volume
      20179RuralAAA46Volume
      201710RuralAAA46Volume
      201711RuralAAA56Volume
      201712RuralAAA38Volume

       

       

      YearMonthSKUSCC.Ton

      20171AAA11
      20172AAA13
      20173AAA14
      20174AAA15
      20175AAA10
      20176AAA14
      20177AAA17
      20178AAA18
      20179AAA11
      201710AAA15
      201711AAA18
      201712AAA10
      20171AAB17
      20172AAB18
      20173AAB16
      20174AAB16
      20175AAB14
      20176AAB17
      20177AAB16
      20178AAB14
      20179AAB17
      201710AAB18
      201711AAB18
      201712AAB16
      • Floriankx's avatar
        Floriankx
        Solution Sage

        Can you add headings please.

         

        How did you relate the tables?