Solved

# Report builder expression

Posted on 2013-06-13
322 Views
I have a bit of a complicated requirement - at least it is complicated to me which is why I am hoping to get an assist.

I have a report that has columns (there is more but this is the only necessary info)

Account Officers             Loan Renewal         Loan Amount

Joe Smith                       New                         100.00

Larry Jones                    Renewal                   200.00

Joe Smith                       Renewal                   500.00

Angie Lowe                    Renewal                   100.00

There are various account officers and I need a Dollar Amount breakout of Total Dollar amount of Loan Renewals that are new and a total of Loan renewals that are renewals for each officer.

What I am looking for is

Joe Smith           Total New  =100.00  Total Renewal = 500.00             Loan Total = 600.00

Larry Jones        Total New = 0           Total Renewal = 200.00             Loan Total = 200.00

Angie Lowe        Total New= 0            Total Renewal = 100.00            Loan Total = 100.00
0
Question by:Sahap Yuzer
• 2

LVL 37

Accepted Solution

ValentinoV earned 500 total points
I assume you don't need the details level in that same table?  If you do, you might need to adapt the following a little.

Start by grouping the current details level (Row Groups) on Officer.

Then use an expression like the following to get a total per loan type:

=Sum(IIF(Fields!LoanType.Value = "New", Fields!LoanAmount.Value, 0))

For the overall total you just need Sum(Fields!LoanType.Value)
0

LVL 37

Expert Comment

Or you could just use a matrix.  Put LoanType in Columns, Officer in Rows and LoanAmount in Data.
0

LVL 1

Expert Comment

yes,matrix format should be a easiest solution as per your requirement.

so Account officer put in row
Loan renewal in coloumn so group it by value (new,renewal..etc)
Loan Amount as data

and at the end you can add total so for individiual officer you get it
0

## Join & Write a Comment Already a member? Login.

### Suggested Solutions

Title # Comments Views Activity
SSRS Capabilities 3 38
MDX in SSRS v SSAS 1 1,262
DTC in SQL Cluster 5 35
Ssrs disable the home lonk 1 58
Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …
Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

#### 763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

#### Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!