Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

two rows per record dependent on date for value

I want to compare the tiers of 2019 vs 2020, by creating a column for each. Some companies may not have a 2019 or 2020 but all have at least one or both, meaning two records. 

 

If a company has 2019 and 2020, it brings the record in twice. and displays the Tier on its own line -- I just need one row per company name. This is my result:

Desired result (THIS IS USING A MATRIX -- BUT DOESNT COVER WHAT I NEED, NEED COLUMN FOR EACH YEAR:

  • Do this on Power Query:

    - select your column "Year"

    - at "Transform" tab, hit "Pivot Column"

    - select your column "Tier"

    - on "Advanced options", choose "Don't aggregate"

     

4 Replies