Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

column value based on the values from two other columns

Hi, I am looking for help if it is possible to add a column value based on the values from two other columns. I have two possible values for the Class Name column based on the Course Name and whethe...
  • lbendlin's avatar
    lbendlin
    3 years ago

    1. Identify a primary key in your data.  In your case that is a composite key made up of Course Name and Student Grade which I implemented as a calculated column

    2. Right click on that primary key column and create (or edit) a group. Now you can bucket collections of primary keys into your Class groups.

    3. Use the Class groups column in your visuals.

     

    The same can be achieved with lots of code in either Power Query or DAX, but the column group method is more convenient, and it is sufficient if you don't expect your data to change frequently.