Solved

SSRS Report Matrix Column Group If Statements

Posted on 2013-06-11
5
711 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

821 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