SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Newby question


Newby question

Author
Message
cmw 66135
cmw 66135
SSC Eights!
SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)

Group: General Forum Members
Points: 873 Visits: 128
Hi

I am looking for some advise. We have taken on a new finance system at my firm and the report builder is SSRS 2014 which I have never used before. As I am compentant in Excel my firm assume that I will be able to build reports without training, yes a mistake but nothing I can do about it without paying for my own training. Anyway I have built a number of reports now which work (thank god) but I am struggling to format a column as per the hard coded reports. In the hard coded reports our file numbers show as

XXX000-0001
But on my reports this is showing as xxx0000001. I have tried formatting the text to add a dash but this doesn't work. I assume it must be achievable as the hard coded reports use the same report builder, can somebody point me in the right direction please so I can make our reports look right

Thanks
Chris
Thom A
Thom A
SSC Guru
SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)

Group: General Forum Members
Points: 82531 Visits: 21130
Where is the value of your file number coming from? Does the source it's coming from contain "xxx0000001" as well?


Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does :-P

Please always remember to encapsulate your code in IFCode Markup. For example [code=sql] [/code].
Click here to read Jeffs Guide on how to post SQL questions, and get swift and helpful answers from the community
cmw 66135
cmw 66135
SSC Eights!
SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)

Group: General Forum Members
Points: 873 Visits: 128
It comes from a field called matter number. I assume the source contains "xxx0000001" obviously a sample as all the matter numbers are unique as I say the system reports that are hard coded shows this as client no "xxx000" and matter no "0001" as per my example above with the dash between the 2 numbers
Thom A
Thom A
SSC Guru
SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)

Group: General Forum Members
Points: 82531 Visits: 21130
Personally, I would use an expression to add the hyphen in then. Assuming your field name is of (n)varchar type, and is always 10 characters in it's original form:
=LEFT(Fields!Matter_Number.Value, 6) & "-" & RIGHT(Fields!Matter_Number.Value,4)




Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does :-P

Please always remember to encapsulate your code in IFCode Markup. For example [code=sql] [/code].
Click here to read Jeffs Guide on how to post SQL questions, and get swift and helpful answers from the community
cmw 66135
cmw 66135
SSC Eights!
SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)

Group: General Forum Members
Points: 873 Visits: 128
Your assumption is correct. Just one last question. Where do I add that expression Smile

Thanks for your help
Thom A
Thom A
SSC Guru
SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)SSC Guru (82K reputation)

Group: General Forum Members
Points: 82531 Visits: 21130
cmw 66135 - Friday, August 4, 2017 3:10 AM
Your assumption is correct. Just one last question. Where do I add that expression Smile

Thanks for your help

You use the expression as your field/textbox value. Your field, in the preview pane, probably contains "[Matter_Number]" right now. If you right click the field, an option menu will appear; oOne of those options if fx Expression. That'll open a dialogue window to input your expression.



Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does :-P

Please always remember to encapsulate your code in IFCode Markup. For example [code=sql] [/code].
Click here to read Jeffs Guide on how to post SQL questions, and get swift and helpful answers from the community
cmw 66135
cmw 66135
SSC Eights!
SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)SSC Eights! (873 reputation)

Group: General Forum Members
Points: 873 Visits: 128
Was just going to type the reply that I worked out where to put this and then your reply popped up on my email

Thanks for your help
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search