Forum Discussion

smpa01's avatar
smpa01
Icon for Community Champion rankCommunity Champion
2 years ago
Solved

Matrix Manipulation

I have a matrix which returns this But I want to manipulate in such a way so that it brings only {factTwo} for month1  and {factOne,factTwo} for  month2. My desired output is below ...
  • parry2k's avatar
    2 years ago

    smpa01 you can easily achieve this with calculation groups.

     

    here is a high level of how you will do it, assuming you have two measures called "Measure Fact 1" and "Measure Fact 2"

     

    - create a calculation group with two calculation items, let's call those fact 1 and fact 2

    - in fact 1 calculation item, you will check if the selected value = month 1 then return blank else return "measure fact 1"

    - in fact 2 you will always return "measure fact 2"

     

    on matrix visual:

     

    - category on rows

    - month and column from new calculation group 

    - in value, use any one measure

     

    Please try and let me know if you run into any issues.

     

    Cheers!