Forum Discussion

lherbert501's avatar
lherbert501
Post Prodigy
2 years ago
Solved

Calculation Groups - Difference measures

Hi,

 

Could somebody please help me whether this is possible?

 

I need the layout like below to be in a matrix. I've used a calculation group for current and previous period and this works well because they are using the same fields.

 

My problem is that Growth has some different calculations to the other two, and as this all needs to be on the same matrix I'm struggling to put it together. 

 

Could somebody please advise if this is possibele?

 

Thanks in advance

 

 

13 Replies

  • Daniel29195's avatar
    Daniel29195
    Community Champion

    lherbert501 

     

    sorry but the image is somewhat confusing .( for me maybe ) . 

    you want to have 2 levels in the columns : 
    level1 : 

    growth current period vs previous perd ,

    previous period

    current period 

     

    level2 : 

    growth %, growth $ 

    sales , profit 

    sales , profit 

     

    • lherbert501's avatar
      lherbert501
      Post Prodigy

      Hi Daniel29195 ,

       

      Currently its coming out below which is correct, but how would I add two more columns onto the growth but not onto the other two (Current Period & Previous Period).

       

      Growth needs to have 4 columns on the matrix and current period and previous need to have two.

       

       

       

       

      • Daniel29195's avatar
        Daniel29195
        Community Champion

        lherbert501 

        maybe you can do the following : 
        create a table with the following structure : 

         

        level 1                                         level2 

        growth                                      total sales 

        growth                                       total margin

        growth                                       calculation 3

        growth                                       calculation 4

        previous period                            total sales 

        previous period                            total margin

        current period                                total sales 

        current period                              total margin

         

         

        then in your calculation you can use one measure with switch statement