Solved

SSRS Report Matrix Column Group If Statements

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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 article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now