Ssrs 2008 the report instead of showing Emp # want to show Emp Name , how i can write case when syntax
working on SSRS report , pulling the data with Emp # I want to show with emp Name instead,
is there way to write case when syntax so it can show only emp name instead of emp #
for example
Emp # Emp Name
144 Kevin
want report to pick the name as Kevin instead of 144
any help will be great
thansk
thanks for reply RSingh
I tried changing the query as you suggested
SELECT [EMP #], [EMP NAME], FIELD1, FIELD2 FROM TABLENAME
it did not work, getting error message
empLid table name JMGPAYEMPLOYEE and there is no emp name field
when I modify the query as per above getting error message
because I have 2 data set
1. Projid
2. Projgroupid
3. parameter I have date
below is my query
SELECT PROJTABLE.PROJID, PROJTABLE.PROJGROUPID, PROJTABLE.DATAAREAID, JMGPAYEMPLOYEE.EMPLID, PROJTRANSPOSTING.QTY, JMGPAYEMPLOYEE.PRICE,
PROJTABLE.DIMENSION2_, PROJTRANSPOSTING.POSTINGTYPE, PROJTRANSPOSTING.COSTSALES, PROJTRANSPOSTING.PROJTRANSDATE,
CATEGORYTABLE.CATEGORYNAME
FROM PROJTABLE INNER JOIN
PROJTRANSPOSTING ON PROJTABLE.PROJID = PROJTRANSPOSTING.PROJID AND PROJTABLE.DATAAREAID = PROJTRANSPOSTING.DATAAREAID
INNER JOIN
JMGPAYEMPLOYEE ON PROJTRANSPOSTING.DATAAREAID = JMGPAYEMPLOYEE.DATAAREAID AND
PROJTRANSPOSTING.EMPLITEMID = JMGPAYEMPLOYEE.EMPLID INNER JOIN
CATEGORYTABLE ON JMGPAYEMPLOYEE.DATAAREAID = CATEGORYTABLE.DATAAREAID AND
JMGPAYEMPLOYEE.EMPLID = CATEGORYTABLE.CATEGORYID
WHERE (PROJTRANSPOSTING.COSTSALES = 1) AND (PROJTRANSPOSTING.POSTINGTYPE = 121) AND (PROJTRANSPOSTING.PROJTRANSDATE >= @Paramfromdate) AND
(PROJTRANSPOSTING.PROJTRANSDATE <= @ParamTodate)
any advise will be helpful
thanks
Similar Messages
-
Ssrs 2008 r2 report dataset call a stored procedure
I am modifying an existing SSRS 2008 r2 report. In a dataset that already exists within the ssrs 2008 r2 report I need execute
a stored procedure called StudentData and pass 3 parameter values to the stored procedure. The stored procedure will then return 5 values that are now needed for the modified ssrs report. My problem is I do not know how to have the dataset call the stored procedure
with the 3 parameter values and pass back the 5 different unique data values that I am looking for.
The basic dataset is the following:
SELECT SchoolNumber,
SchoolName,
StudentNumber,
from [Trans].[dbo].[Student]
order by SchoolNumber,
SchoolName,
StudentNumber
I basically want to pass the 3 parameters of SchoolNumber, SchoolName, and StudentNumber to the
stored procedure called StudentData from the data I obtain from the [Trans].[dbo].[Student]. The 3 parameter values will be obtained from the sql listed above.
The columns that I need from the stored procedure called StudentData will return the following data columns
that I need for the report: StudnentName, StudentAddress, Studentbirthdate, StudentPhoneNumber, GuardianName.
Thus can you show me how to setup the sql to meet this requirement I have?Hi wendy,
After testing the issue in my local environment, we can refer to the following steps to achieve your requirement:
Create three multiple parameters named SchoolNumber, SchoolName and StudentNumber in the report. Those available values from the basic dataset SchoolNumber, SchoolName and StudentNumber fields.
If you want to pass multiple values parameter to stored procedure, we should create a function as below to the database:
CREATE FUNCTION SplitParameterValues (@InputString NVARCHAR(max), @SplitChar VARCHAR(5))
RETURNS @ValuesList TABLE
param NVARCHAR(255)
AS
BEGIN
DECLARE @ListValue NVARCHAR(max)
SET @InputString = @InputString + @SplitChar
WHILE @InputString!= @SplitChar
BEGIN
SELECT @ListValue = SUBSTRING(@InputString , 1, (CHARINDEX(@SplitChar, @InputString)-1))
IF (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar))>(LEN(@InputString))
BEGIN
SET @InputString=@SplitChar
END
ELSE
BEGIN
SELECT @InputString = SUBSTRING(@InputString, (CHARINDEX(@SplitChar, @InputString) + len(@SplitChar)) , LEN(@InputString)-(CHARINDEX(@SplitChar, @InputString)+ len(@SplitChar)-1) )
END
INSERT INTO @ValuesList VALUES( @ListValue)
END
RETURN
END
Use the query below to create a stored procedure, then use it to create a dataset to return 5 values:
create proc proc_test(@SchoolNumber nvarchar(50),@SchoolName nvarchar(50),@StudentNumber nvarchar(50))
as
begin
select StudnentName, StudentAddress, Studentbirthdate, StudentPhoneNumber, GuardianName
from table7 where SchoolNumber in (SELECT * FROM SplitParameterValues (@SchoolNumber,',')) and SchoolName in(SELECT * FROM SplitParameterValues (@SchoolName,',')) and StudentNumber in (SELECT * FROM SplitParameterValues (@StudentNumber,','))
end
Right-click the new dataset to modify the parameter value in the Parameters pane as below:
=join(Parameters!SchoolNumber.Value,",")
=join(Parameters!SchoolName.Value,",")
=join(Parameters!StudentNumber.Value,",")
For more details about pass multi-value to stored procedure, please see:
http://munishbansal.wordpress.com/2008/12/29/passing-multi-value-parameter-in-stored-procedure-ssrs-report/
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
Pass values between ssrs 2008 r2 reports
In a ssrs 2008 R2 report, I need to pass parameters to existing subreports that are currently called. Basically there is a main sssrs 2008 r2 report and there are 3 subreports. I would like subreports #1, subreport #2, and subreport #3 to receive
the value values of customer number and customer name. I am hoping you can tell me and/or show me code that would tell me how to add parameters parameter values that are used to call these subreports.Hi wendy,
According to your description, it seems that you want to pass parameter values from main report to subreport1, from subreport1 to subreport2, and from subreport2 to subreport3. If in this scenario, you can refer to the following steps about the sample test
(from main report to subreport1) in my environment:
Create a parameter named ID in the main report, adjust the report body and tablix with the same size.
In the subreport1 report, right-click one cell to insert a subreport.
Right-click the subpeort to open the Subreport Properties, and select the main report name in the drop-down list.
In the left panel of the Subreport Properties dialog box, click Parameters.
Select ID in the drop-down list of Name, and select [ID] in the drop-down list of Value.
Considering your question, because I have create a parameter in the main report and specify the parameter in the subreport1, the main report will be passed by the parameter to subreport1.
If you have any other questions, please feel free to ask.
Thanks,
Katherine xiong
If you have any feedback on our support, please click here.
Katherine Xiong
TechNet Community Support -
How to split table in the report so it shows on the next page?
Hi,
How to split table in the report so it shows on the next page? Im trying to fit long (many columns) table into my report page. It is too long however. I want it to wrap and show the rest on the next page. What I get now is table cut at the page end and rest is not visible.Yes, this might be that the amount of data will cause table to grow and exceed 1, 2, 3.. pages. In that case I would probably want to have, lets say , one half of columns on 1st page then the other on the 2nd page and then repeatedly the same sequence down across all pages. Is there a way to achieve this?
-
Hi! I have very unpleasant problem with my phones after legal OS update! After Alcatel OT Fire OS update from v1.0.1 to v1.1.0.0, the phone stops to show contacts names and pics for incoming calls and names for missing calls from phonebook. Before update, everything worked just fine! People from Telenor Serbia obviously hadn`t solution for this problem. They send me a request to send them a phones (yes two phones with same problem), but I got a phones back with unsolved problem! Also in the datas about phone, OS, e.t.c, the phone number doesn`t exist any more, just blank field. If means something, the phones are with different hardware revisions, 11 and 12! Any solution for this problem?! Thanks!
Hello,
After reading the information provided about your issue I suggest a soft reset of the phone.
#Take the back cover of the phone off.
#Take the battery out.
#Take the SIM card and microSD card out (if applicable).
#Wait 10 seconds.
#Put the SIM card and microSD card back in (if applicable).
#Put the battery back in.
#Put the back cover back on.
#Turn the device on.
#Check if the issue you were having is still present.
Please report back to us if this solved your problem!
Thank you -
So i bought music on a different computer but oAn the same itunes account and on the same ipod and when i get on my original computer and i sync my ipod my purchases that were on the other computer didnt show up. How can i put them on my computer/ipod
Download them to the computer to which the iPod is synced, re-sync.
Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later. Discontinued items not available. For items not included in the iCloud list, or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid. Apple notes it is your responsibility to back up your purchases.
Select the store on the left side of iTunes.
Click on Purchased on the right side under Quick Links.
You can re-download your available previous purchases. -
i just got an IMac, and when i plug my IPad in, the device is not showing up on itunes ? can anyone help me ?
i tried many times, and it still dosent workTake a look at this Apple article -> iOS: Device not recognized in iTunes for Windows
Is the Apple Mobile Device Service installed and running on your computer? -
i need to change the sim card, when i insert the new card it showing "no sim" how can i solve this problm?
Get a working SIM from your carrier?
Was your phone jailbroken or hacked to unlock it? -
We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers? It doesn't appear anywhere. Do I now have to sort massive tables by each column one at a time now? Also there used to be an easier way to merge/unmerge cells without me having to go to the table menu each time. Am I missing something?
Multiple column sort is a missing feature in the new version. Hopefully soon to return. You can do a multicolumn sort by sorting one at a time in reverse order of importance.
For merging and unmerging cells, I select the cells and right click to bring up the contextual menu. Merge and unmerge are on the menu. You could also create keyboard shortcuts for Merge Cells and Unmerge Cells in the Table menu. -
I had problem my the new ipad that show notify to update but can not update that update page show blank page
Try updating from here:
App Store>Purchased>Select All
Note: You'll have to look out for apps with the "Update" -
i am upgrading my 2008 macbook to an ssd drive and want to save my settings. how do i save then? I have my files backed up with time machine ,but dont want to restore all files ,as there might be some junk backed up too. Help will be appretiated
When you restore from a Time Machine back up you can pick and chose what is restored. It is not an all or nothing process. Nor do you have to do the partial restores all at the same time. If days after the first partial restore you find something else you want you can restore just that.
-
First time use of a secondhand 3gs; SIM failure (the SIM works fine in other handsets); any suggestions as to how I can fix this?
Hi L.T.D.,
To only answer the question you asked, the answer is yes you can do those specific tasks you mentioned.
My example:
Since you don't want the sentence if A2 is blank you would modify this formula to something like this:
=IF(ISBLANK(A2),"","the patient reports "&A2&" that won't leave.")
I don't see a problem if all you are looking to do is to translate your form or forms into a report. I could even see several different forms reporting to one sheet that tracks their history. It may require a lot of maintenance if there are an increasing number of forms reporting.
Sometimes merged cells create difficulty in Numbers. A mix of popups and checkboxes may complicate things.
I think the previous advice may turn out to be the best, though. You are asking,"If I head this way am I headed to Japan?" I am saying "Yes". They are saying, "You will need a boat!"
quinn -
I am sharing a apple id acount with my family but when I synced my iphone to the computer it erased all of my imformation and put the other phone's imformation on it. I was wondering how I can prevent this from happening?
If the ringtones are on the old device just plug it in and do a transfer of purchases then they will be on the computer to sync to the new device.
-
Once 10.9.1 is loaded onto my MacBook Pro and it has accessed all my files; is there anyway to back out of the relationship? I don't want my data on iCloud - how do I make that happen? Many thanks for any help.
Sorry but I know of no way of not backing up for a PC.
-
I've been working on our church website and all of a sudden this week, my computer will not connect to the site. I keep getting a message saying that the the connection to the server was reset while the page was loading. Does anyone have any ideas of how I can fix this?
The "The connection was reset" error message can be caused by a bug fix for the BEAST (Browser Exploit Against SSL/TLS) attack that the server doesn't handle.
*[[/questions/918127]]
*[[/questions/918028]]
Maybe you are looking for
-
User Authentication for subfolder not working in Web Browser
We are using Oracle Application Server 10.1.2.3 and Database Server 10.2.0.5 for our application. One of the functionalities of the Application is to send emails with attachments. The logic is that the Application would generate the attachment file o
-
how do i get my iphone of recovery mode? it went in to recovery mode after trying to update!!
-
Error while starting CICS Runtime Server
Hi , I am trying the rehost the STFILEORA sample applcation that is provided with Tuxedo workbench . I followed all the steps and deployed the application. After that I did . ./setenv and ksh ./setup.sh under CICS_RT which worked okay. But when I tri
-
Will CSD shows Agent state as hold
Hi All, Would like to know if Cisco supervisor desktop can shows agent state as hold? Issue is that even if the Agent placed the customer on hold, Supervisor desktop will show the Agent in talking state, which will give wrong perception to supervisor
-
2" Business Card = 1.99" in Template
I just noticed something strange. Business cards are 2" high. You'd think that a business card template shoud then have a table with cells that are 2" high. When I print such a template, each cell is taller than the business card! In fact, I have to