Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Adding a new column to a matrix visual based on calculation

Hi!

 

I have the following data table:

 

CategoriesProductAmount
ALLA3
ALLB2
ALLC10
ALLA7
ALL B13
Category1A2
Category2B3
Category3C5
Category1B3
Category2A2
Category3C1

 

I want to make a matrix table out of this in the following format:

ProductCategory1Category2Category3ALL minus EVERY CATEGORYTotal
A22010-2-2=610
B33015-3-3=915
C00610-6 = 410
Total55635-5-5-6 = 1935

 

From Category1 to Category3 it is easily done, but i'm having a hard time figuring out how to do the calculated column.

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      If i put this measure in my matrix, the measure gets calculated for every existing column in the matrix. Is there a way around this?

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        You are already skirting by one of the UX rules (don't repeat data in the same visual). I would recommend you use separate visuals.