🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

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

User: "Cindy_20404"
New Altair Community Member
Updated by Cindy_20404

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!

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "CPorthouse"
    Altair Employee
    Updated by CPorthouse

    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?