Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SSRS Report Matrix Column Group If Statements

Posted on 2013-06-11
5
Medium Priority
?
730 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

721 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