Forum Discussion
migueljoa
5 years agoFrequent Visitor
Help with this Powerquery Puzzle!
I have a table with the following columns:
[Date] [BalTerm1] [BalTerm2] [BalTerm3] [Rate1] [Rate2] [Rate3]
I want it to look like this:
[Date] [Term] [Balance] [Rate]
1
2
3
Solved it!
- Unpivot Term Columns
- Unpivot Rate Columns
- The result will be a matrix that repeats all combinations of Term and Rate
- Replace text to match Rate attribute to Term Attribute
- Create a column to find attributes that are the same
- Remove rows that are not a match
- Rename columns properly and remove the new row created.
1 Reply
- migueljoaFrequent Visitor
Solved it!
- Unpivot Term Columns
- Unpivot Rate Columns
- The result will be a matrix that repeats all combinations of Term and Rate
- Replace text to match Rate attribute to Term Attribute
- Create a column to find attributes that are the same
- Remove rows that are not a match
- Rename columns properly and remove the new row created.