Trying to calculate the sum of multiple currency columns in Classic or Data Prep Studio to have an output of total

Cindy_20404
Cindy_20404 New Altair Community Member
edited December 2020 in Community Q&A

I have four payment columns that I want to calculate the total per a patient account number.

If in excel, I would use =sum(Pymt1+Pymt2+Pymt3+Pymt4)

Even in the Summary process, only get totals for the column and not as a row/attribute.

Thank you!

Answers

  • CPorthouse
    CPorthouse
    Altair Employee
    edited December 2020

    Depending on how your data is displayed, you have a couple of options.

    Sounds like you already have the payment columns created.  You can simply create a new formula column to add those columns up by clicking on the menu drop down arrow of any column and selecting Column->New Formula Column...:
    image
    In the "New Formula Column" wizard, give your new column a name and then start building your expression by double clicking on the columns you want to add.  Place a plus key (+) in between each column:
    image
    And then press the OK key.

    If the data is not grouped by patient account number, try using Transform->Group (Group and summarize values) and group your data on patient account number and then use the above suggestion.

    If your payment columns are not created yet, you can try either using Transform->Pivot to create them.

    If this doesn't answer your question, is it possible to share a screenshot or an example of the data so we can better understand how your data is displayed?