Forum Discussion
How to Create Multiple Custom Columns with Different Formulas in One Applied Step?
- 4 years ago
Hi Anonymous ,
My first instinct would be to unpivot your [CurrentPeriod_X] columns.
Multi-select all columns that are not [CurrentPeriod_X], then on the Transform tab, go to Unpivot Columns > Unpivot Other Columns.
This will normalise your data for correct data model use, and will mean you only need to perform your polarity change on one column.
Pete
Hi Anonymous ,
My first instinct would be to unpivot your [CurrentPeriod_X] columns.
Multi-select all columns that are not [CurrentPeriod_X], then on the Transform tab, go to Unpivot Columns > Unpivot Other Columns.
This will normalise your data for correct data model use, and will mean you only need to perform your polarity change on one column.
Pete
Thank you very much BA_Pete!
Your solution worked great and I now understand how pivoting and unpivoting works within the query (somewhat). Have a great rest of your day!