Power Query: Best way to duplicate data, flip signage, change business unit


Active Member
Feb 15, 2007

I have some table data where I would like to generate an aggregate reciprocal position. This relates to modelling allocation of costs within an organisation.

E.g. 5 departments a, b, c, d, e receive costs of -1, -2, -3, -4, -5 respectively. I would like to generate in the cleanest and most simple manner possible an opposing amount of +15 for department X which I am happy to hard code or take as a parameter. My actual source table contains about 8 other fields which are all to be retained. These other fields include month, cost type, SLA agreement number etc.

What's a good way to do this? I am presently generating various staging tables and combining but I don't like it. is there a better way? Keen to not mirror rows wholesale in order to reduce memory overhead. Would ideally like one aggregate opposing position.


Last edited:

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...