Solved

SSRS Report Matrix Column Group If Statements

Posted on 2013-06-11
5
723 Views
Last Modified: 2013-07-01
Hi,

I have a report matix that counts how many referrals our doctors make per month.  I need an iff statement that would allow me to add together our endo-provider and endodontist together as one column.

The reason why I have them separated in my SQL code is because I want the bar chart on the report to graph them separately so that the key stakeholders can have a quick view of the 2

Thank you for all of your help in advance
0
Comment
Question by:thomasm1948
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 37

Expert Comment

by:ValentinoV
ID: 39240110
" I need an iff statement that would allow me to add together our endo-provider and endodontist together as one column."

Sounds to me like you need the + operator instead of an IIF? Unles you've only told us part of the story.

You could add a calculated field to your dataset which represents your endo-provider/endodontist concatenation.  To do that,  right-click the dataset > Add Calculated Field.  Then use the fx button on the empty line at the bottom to enter an expression like:

Fields!endoprovider.Value + Fields!endodontist.Value

(or use an IIF somehow if that's what you need)

You can now use that new field in your matrix.
0
 

Author Comment

by:thomasm1948
ID: 39241912
I hoping to hide the endo-provider columns and have it added to the endodontist column

Is that possible
0
 

Accepted Solution

by:
thomasm1948 earned 0 total points
ID: 39242686
OK,

The colums that calculate the specialties (endo-provider, endontist, etc) is actually one column in one of our tables.  The report matrix seperates them into seperate columns.  

Tried using the calculated field option but I don't know how to add the information together because the Fields!Specialty.Value can have other values within it that the report will automatically create the column for
0
 

Author Comment

by:thomasm1948
ID: 39243093
Alright,

I feel like an idiot on this one.  After thinking about it I figured I always can have two columns in my SQL code.  1 that illistrates the different types of endonotist and the 2nd that just generalizes the endontist as one type).  Now my code shows the correct information in the Chart and Grid

I will keep this one open just in case someone can show me how to do it in reporting services
0
 

Author Closing Comment

by:thomasm1948
ID: 39289446
I was able to figure it out
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

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

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

Join & Ask a Question