Skip to content

Total Amount of a column #199

@jsuske1985

Description

@jsuske1985

Hi,

I was able to get a total amount of one column...but now I am having trouble displaying it, what would you recommend?

           ```

result.Items = query.ToList();

            var totalAmount = 0.0;

            foreach (var item in result.Items)
            {
                totalAmount += item.Amount;
            }

            ViewBag.totalAmount = totalAmount;

I have tried with a ViewBag but that did not work at all. This code is inside the RetrieveData block. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions