Laura has a bunch of numbers sitting in column A5 of her Excel spreadsheet showing 5 digit product codes for her umbrella business. She received the file from a vendor, and somewhere in the process Excel stripped off the leading zeros.
Create a new column in Excel, then apply the following formula to apply leading zeros up to the required 5 digits :
The same formula can be used inside PowerPivot.
If you are using Sharepoint, you can frame your SSRS web part into a page, then link to that page using the QuickLauch links (tick the Open link in a new wind0w box).
Or, you may want to launch the URL from within the SSRS report but there is no such obvious option in the SSRS Report Designer or Report Builder.
Cool post on how to open a link in new window in SSRS http://www.bidn.com/blogs/BrianKnight/ssis/972/ssrs-action-to-open-a-url-in-a-new-window.
Basically in your expression for the Select URL Action above you need to enter an expression formatted as follows :
You have removed the vertical axis in your Reporting Services chart and you can’t find where to restore it. Restore a hidden vertical axis in a Reporting Services Chart as follows :
1. Select the Chart
2. Go to the Properties pane
3. Select the Ellipses (…) beside the ChartAreas Collection
4. Select the Ellipses (…) beside the VerticalAxis Collection
5. Select the axis whether it be the Primary or Secondary axis, then set the property for Visible to True.
6. Click OK
Uncle Julio imported some new product codes into a database for the expanding Fajita business. However the leading zeros have been removed somewhere during the import process. The point of sale machines requires a 4 character product code so he turned to his close friend and I.T. expert Jose, to pad leading zeros in front of the raw product codes. e.g. the following table shows 3 different examples demonstrating how the different lengths of data in the raw code column require more or less leading zeros (maximum required code length of 4 characters) for the Required Code column :
||Number of Leading Zeros to Pad
The following snippet demonstrates how Jose managed a year’s supply of free Fajitas by padding leading zeros in front of the product codes using the REPLICATE function :
REPLICATE('0', 4-LEN(a.[Raw Code])) + CAST(a.[Raw Code] as varchar(4)) as [Required Code]
Quick snippet to generate a datetime value where you only have a year to work with. Creates a datetime value set to the 1st day of the year.
DECLARE @Year int
SET @Year = 2010
SELECT CONVERT(datetime, CONVERT(varchar(8),@Year*10000+101))
This compilation of date possibilities is also really cool – though not as cool as Dan Aykroyd…
You have imported data from a text file into your database which included datetime values formatted as strings. An example is the following string
’2013-09-12 01:03:52′ which represents the date 12th September 2013 at 3 minutes past 1am on the 52nd second.
The following snippet example show how to convert this string to a datetime value :
DECLARE @string varchar(24), @date date, @time time
SET @string = '2013-09-12 01:03:52'
SELECT CONVERT(datetime,REPLACE(LEFT(@string,10),'-','')) as DateComponent
SELECT CAST(SUBSTRING(@string,12,9) as time) AS TimeComponent
SELECT CONVERT(datetime,REPLACE(LEFT(@string,10),'-','')) + CAST(SUBSTRING(@string,12,9) as time) as DateTimeDataType
For all you hipsters that own a Windows 8 phone the new update 8.0.10328.78 contains a host of new features including Data Sense which gives you a simple setup and visualisations to track your usage.
See your most data hungry Apps …
Watch your limits on the Tile …
Easy to setup too … for a postpaid account you just need to know your anniversary date and monthly data limit. There are a few other setup options include prepaid (set a limit date) or unlimited (no limits but track usage).