Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Table Matrix and columns grouping

Hi there,

 

I have created a table matrix with sales by period like bellow.

I would like to reduce columns, and show

 

  • Before (january to current month - 1) in one column
  • 3 consecutive months from current month counting.
  • After (All remaining months until end of year)

 

I manage to do this manually with a group list.I created bins by month and after group list.

But unfortunatelly each month I must remake groups and this is not convenient.

There is any solution to have dynamically columns grouped like this ?

 

Thank you

  • Anonymous's avatar
    Anonymous
    8 years ago

    Thanks,

     

    Indeed I used group funciton, only that I need each month to update group list.

    I found a solution for this

    I create a group called Group

    computed by compare with today's date

    Group = IF(table[sales date]<=EOMONTH(TODAY(),-1),"Before",if(table[sales date]>EOMONTH(TODAY(),3),"After",table[sales date].[Month]))

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Thanks,

     

    Indeed I used group funciton, only that I need each month to update group list.

    I found a solution for this

    I create a group called Group

    computed by compare with today's date

    Group = IF(table[sales date]<=EOMONTH(TODAY(),-1),"Before",if(table[sales date]>EOMONTH(TODAY(),3),"After",table[sales date].[Month]))

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Microsoft Employee

    Hi Anonymous,

     

    If you just want to use the group in a formula, that would be easy. However, you used the "Group" function. That means you want to use them as columns. I'm afraid this isn't supported by now. Please create an idea here.

    Table_Matrix_and_columns_grouping

     

    Best Regards,

    Dale