Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

make code simple

Hello, i have data that im using to display some lines on a line graph. In order for them to display correctly i need to force the data points to group in a certin way through the "Final" column. for...
  • v-lili6-msft's avatar
    7 years ago

    hi, Anonymous

    You may try this formula as below:

    Column 2 = SWITCH(TRUE(),
    Table1[Index]>=1&&Table1[Index]<=4,1,
    Table1[Index]>=5&&Table1[Index]<=6,2,
    Table1[Index]>=7&&Table1[Index]<=10,3,
    Table1[Index]>=11&&Table1[Index]<=12,4,
    Table1[Index]>=13&&Table1[Index]<=16,5,
    Table1[Index]>=17&&Table1[Index]<=18,6,
    Table1[Index]>=19&&Table1[Index]<=22,7,
    Table1[Index]>=23&&Table1[Index]<=24,8,
    Table1[Index]>=25&&Table1[Index]<=29,9,
    Table1[Index]>=30&&Table1[Index]<=34,10,
    11)

    Best Regards,

    Lin