Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to change columns based on another column

Hi, I am trying to get from here:  To here:    In other words, I would like to use Code to adjust Name and Active, yet count should be just summed up. Any idea how to do it?
  • ryan_mayu's avatar
    5 years ago

    Anonymous 

    How to get the name? Do you want to get the name which active is "yes"?

    if so, you can try this.

    Table 2 = SUMMARIZE('Table','Table'[CODE],"COUNT",SUM('Table'[COUNT]),"NAME",MAXX(FILTER('Table','Table'[ACTIVE]="Yes"),'Table'[Name]),"Active","Yes")