Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to Create Multiple Custom Columns with Different Formulas in One Applied Step?

Hello,   I'll preface this by saying I am an intermediate Excel user who is still relatively new to both M-Code and DAX and I just started using Power BI.   I am currently working on building a q...
  • BA_Pete's avatar
    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