bet.ucoz.co.uk

Posts Tagged ‘Office’

Excel Tip: Splitting Column Values June 19th, 2013

Vinod Kumar

This is in continuation to tips around Excel. This particular tip has been around in Excel for ages. But just like any other feature in Excel this is yet another nice utility that is lesser known to many.

Let us assume you have the following data set. This is a simple data set and it has Name that has come from some external source. Now we want to split as Lastname and FirstName instead of the usual Name column as shown below.

Now to split the column, create a new column “C” by inserting a new column adjacent to our name column. Next select all the values from Name column. With this selected, goto Toolbar “Data” Tab –> “Text to Columns” under Data Tools section.

Selecting this invokes a wizard which is easy steps. Select “Delimited” and press “Next”.

This is the screen where we will select the delimiter. In our Dataset, the Name field has a space. So we will select “Space” in this screen. And select “Next”.

Now we will be presented with the final screen. This can be used for some Formatting options. In my data, I am going to select the defaults. Press “Next”.

Our final screen shows the split automatically done. The screen would typically look like below. Give the Column “C” as Lastname and we must be done.

This option works wonders when data values are consistent and has just two parts or three parts for ALL data values. Else we will get additional columns and if there is data, a popup appears telling us there are values and do we need to override. Be careful in such cases.

Hope you have used these in the past and I will try to bring in more such tips in our subsequent blog posts.

Continue reading...


 

Excel Tip: Art of Summing with Excel June 14th, 2013

Vinod Kumar

Let me bring this weeks Excel Tips and Tricks series with a simple tip. The scenario I am talking is most used – You want to Build a Sum of values for a table of values.

The most common requirement for any table of data is to build a SUM or Average along its rows and Columns. There are multiple approaches and let me outline some of the most common ways it is done today and I find each of these methods interesting and one method will always be efficient than the other. I am sure I have not outlined all the possible ways of doing this task.

Initial DataSet

This is a simple dataset of names and various Sales number. Now we need to have create totals Month-wise as well as employee-wise. So our dataset looks like below:

And we want to build SUM across and along as shown below:

Using SUM Formula

The basic old school of thought will be to Type “=SUM” as shown in figure below and we can give the range of C3-C6. Similarly we will do it for each of the cells.

Copy-Paste: A more efficient way to get the values across will be copy the Cell C7 and paste it across in D7, E8 and so on. This copies the formula of sum and gets the relative cells accordingly for each cell.

Using Shortcut

When the Cursor is at C8, Press “Alt+” (Alt and + key). This generally gets the adjacent cells and does the auto select with the SUM option. This is really powerful and your screen would look like this:

Now that we have got the C8, we can do Copy-Paste. Wait, now if you move your mouse to the C8 cell corner – you will be presented with a cross-arrow. Just drag this till F Column. It will magically fill the formula and make the SUM.

Now let me move to the Columns G3 and to get the SUM, let me use “Alt+” and press Enter. Voila, you have the Sum across columns done. Now we can use the same cross-arrow and drag – hold on.

Once you see the cross-arrow in columns, just double click. You will automatically fill till G7. Awesome right?

Using Toolbar

I am sure you have used any of these previous techniques in the past. The most efficient way I have figured out for Summing is using the Toolbar –> Home –> Editing Section –> AutoSum.

For this to work, select the region and just one click from toolbar. The values are filled.

It is just not only for single click SUM, you can also get AVERAGE, COUNT, MAX, MIN and many more functions as shown in figure below.

The best part of this method is, we have not used any Keyboard keys and I call this “Magic with mouse :)”.

Finally, I complete this weeks Excel Tips series and do let me know your feedbacks, I will be more than happy to write more on these lines and your comments are most welcome if you want me to write more of these in the future. I can surely write based on your feedbacks and enthusiasm for this topic. Office is an ocean and we can never be lost for tips to share. Thanks again for reading this far.

Continue reading...


 

Excel Tip: Custom Conditional Formatting on User Input June 13th, 2013

Vinod Kumar

This blog post is an extension to our previous post on Excel Tip: Custom Conditional Formatting. I highly recommend you to read that post because we will be building on the same concept and take it to next level.

In this blog post the problem statement is simple:

  1. Have user input for Sales or Spend.
  2. If “Sales” is given, we want to highlight “Sales” values greater than 70.
  3. If “Spend” value is given, we want to highlight all “Spends” values lesser than 30.

Let us see how to achieve this step-by-step.

Initial DataSet

This is the same dataset I used before for Excel Tip: Custom Conditional Formatting. Nothing magical about the dataset :).

Creating Filter Dropdown

We will try to create an Input element, in our example below I am creating a Label of Filter and adding a cell C1. Let us next add the dropdown.

With Cursor on C1, Select Data Tab –> “Data Validation”.

This brings the Data Validation Screen. In this screen, Select Allow –> List. Under Source, we will select our sources of values in C3 and D3. This will be for values Sales and Spend.

Now click “OK” on Data Validation screen. Now you will be presented with a Dropdown on C1 cell and selecting that gives us two values as below.

Starting Conditional Formatting

Now the process for conditional formatting is similar to the post from Excel Tip: Custom Conditional Formatting. Let us select the section C4-D9 region and select Home –> Conditional Formatting and “New Rule…”.

In our Formatting rule screen, let us add a simple rule to start with. Here we have entered a Formula of =IF($C$1=”Sales”, $C4>70). Also don’t forget to change the Format color before hitting OK.

This formula shows conditional format of Sales > 70 when our Dropdown value shows Sales. A sample output is shown below.

Interestingly, we have not yet written our rule for “Spend”<30. So Goto Conditional Formatting –> Manage Rule and Edit our Rule again. Here we have used the Syntax of IF(Condition True, then, Else(If (condition) true, then)).

The actual condition looks like =IF($C$1="Sales", $C4>70, IF($C$1="Spend",$D4<30)).

Click “OK” and get back to our C1 Dropdown. Select Spend and now you will see the formatting change.

We can extend this concept to a number of formatting options. I have found this really powerful use of Conditional Formatting and works like charm in almost most of the earlier versions of Excel.

Hope you are enjoying this series of Excel Tips. Keep locked in, we have many more coming. If you liked it, please drop a comment.

Continue reading...


 

Excel Tip: Custom Conditional Formatting June 12th, 2013

Vinod Kumar

I hope you are enjoying the Excel Tips series I planned for this week. I got feedback from people to show some of the old tips I show them with Excel 2007 or Excel 2010 version. So here is a simple blog post which will show how to use custom Conditional Formatting with Excel.

So for this blog post, we will use a simple table. We have 3 columns and some values to play with.

Conditional Formatting

Highlight cells from C3-D4 and select out out-of-box conditional formatting options. In the below figure we have selected, Home Tab –> Conditional Formatting –> Data Bars. Hover over the various options to check how it looks in our table.

In below example, I have shown how it looks using “Orange Data Bar”.

When you want to have a gradient of colors, select the “Color Scales” option and choose one of the options. Below I have shown how data will look in a “Green-Yellow-Red” color scales. This is one of the easiest color coding where Red means Low values and Green mean high values.

Now these are basic out-of-box features. I hope you have used them in the past already.

Custom Conditional Formatting

With out-of-box options available, what if we wanted to color code our rows based on our requirement. Let me describe my requirement, I want to highlight rows who’s Sales value is greater than 60.

To achieve this, Select “Conditional Formatting” –> “New Rule …”.

This will bring up the rules dialog box. Here select “Use a Formula to determine which cells to format”.

As per the requirement we want the “Sales column” value to be greater than 60. So in our “Formula” bar, enter value of “=$C3>60”. Next Select the Format button.

This brings up the Format dialog as above. I have selected the “Fill” tab to fill the cells with Green color. Feel free to use your own color coding. Now the final – “New Formatting Rule” dialog looks like below.

Clicking “OK”, the table now highlights the rows with Sales value greater than 60.

How cool is that? Formatting can be quite powerful and we can add interesting extensions to this. Maybe I will write the same next. Do let me know if you learnt something new today. Thanks for reading this far.

Continue reading...


 

Excel Tip: Options using INQUIRE June 11th, 2013

Vinod Kumar

Yesterday I wrote about Trace Precedents / Dependents and this blog post is an extension to what we have with Excel 2013. In this blog post we will see how to use “INQUIRE” tab and how it can be yet another powerful visualization to find our chain of dependencies inside Excel worksheets.

Enabling Inquire Tab

The first step is to enable the INQUIRE toolbar. This is not enabled by default. Open Excel 2013, in a blank document select “File” –> “Options”. We will be presented with the below screen.

Select “COM Add-Ins” and click “Go…”. We will get this mini dialog. Select the checkbox “Inquire” and click “OK”.

INQUIRE Tab

Once we have done the above step, you will find a new Tab added called as INQUIRE as you can see below.

In this blog post, we will show the following:

  1. Cell Relationship
  2. Worksheet Relationship
  3. Workbook Relationship and
  4. Workbook Analysis

We will use the same worksheet as used in Trace Precedents / Dependents.

Cell relationship diagram

This in a way is like our Precedent and Dependent diagram but is way more cool. This will show us the dependency like a fishbone diagram. With our cursor in “B7” cell, we are going to click on Inquire –> “Cell Relationship” button. We will be presented with the below screen. I generally like to keep the defaults and hit “OK”.

The output will look like below. We see this because we selected the “Initial number of expansion levels” as “Limited –> 1”.

We can expand it to the next level and we will be presented with a more detailed view. Here we are seeing B7 –> Dependent on B9, B70, D25, D15 and so on. How cool is this when compared to our Trace Precedents? We are yet not over. There is more.

Worksheet Relationship Diagram

Now this is new and an great extension. Here click on “Inquire” –> “Worksheet Relationship”. This will show us the dependencies of each of the Worksheets.

In our example above, it is showing the XLS sheet “Statement 2012-11.xlsm” has various sheets like Documentation, P&L Statement, CASH_FLOW etc. While it shows for example “Cost Cap” sheet is dependent on “IM Data”, “GL Data” etc which in this case are a different File and Sheet. Cool isnt it? We arent done yet !!!

Workbook Relationship Diagram

This is taking our dependency diagram to the next level. Especially for file like P&L data can come from a number of external sources. And this option shows how we are dependent on other external sources. Also it also shows if that file currently exists or not :). Cool right.

In our example, I selected “Inquire” –> “Workbook Relationship” to get a typical output like below.

In the above example we can see current XLS sheet is dependent on Northwind1.mdb (access DB), table.html (from web), and a number of other excel sheets. A “Red mark” indicates the object is not available now.

Workbook Analysis Report

This is a great summary of information that is available in our Workbook. It shows a number of information shown, I am listing some of them here.

  1. Visible Sheets
  2. Hidden Sheets
  3. Formulas
  4. Formulas With Errors
  5. Formulas With Logical Values
  6. Formulas With Numeric Values
  7. Formulas With Date/Time Values
  8. Formulas Without Cell References
  9. Formulas Referencing Blank Cells
  10. Formulas Referencing Hidden Cells
  11. Formulas Referencing External Workbooks
  12. Positive Formulas
  13. Negative Formulas
  14. Duplicate Formulas
  15. Cells With Dependents
  16. Cells With Comments
  17. Cells With Validation Criteria
  18. Cells With Conditional Formatting
  19. Invisible Cells
  20. Blank Cells
  21. Hidden Rows and Columns
  22. Named Items
  23. Named Items With Errors
  24. Warnings

And many more that I have not listed. The below diagram shows a snapshot of the same information for our Demo P&L Excel sheet.

Conclusion

Hope you found this blogpost interesting and you got to learn something new. This feature is part of Excel and worth a look any day. We will look at many more Office tips coming this week. Stay tuned on the series.

Continue reading...


 

Excel Tip: Trace Precedents / Dependents June 10th, 2013

Vinod Kumar

I am a big fan of Office products (Word, Excel, PowerPoint, Access and OneNote) and I always find it interesting to share my tips with customers almost every single day. I have found it tough to explain them over my blog till date except for one post (Excel Tip – Find invalid data). I am sure if you have played around with Excel 2013 there are loads of features to look out, I am not going to explain the common super cool features of PowerPivot, PowerView, GeoFlow etc. Those will be way in the future maybe :).

So stay tuned because this week will be “Excel 2013 Tips and Tricks” that I love to share with customers daily and now with you. Some of these features are already available in previous versions but they may look refreshing every single time. Incase you don’t find the option I am talking, it is an Excel 2013 feature.

Trace Precedents and Trace Dependents

In this blog post, we will look at the options available in “Formula’s” toolbar of Trace Precedents and Trace Dependents. We can will find these options:

Let us assume we have a P&L statement which is using tons of Excel references to different cells. In our below example, you can see that we have selected the cell “D13”.

This is a very big Excel sheet spanning multiple sheets and running close to 80-90 rows of cross references.

Trace Precedents

Now let assume you want to check which are the values that affect the value in cell “D13”. This is where “Trace Precedents” help. Click the same from “Formulas” toolbar.

You will now magically see an arrow (as above), this means the value in D13 is dependent on values coming from “B11” in our example. If there are other dependent values then we will get multiple arrows. Here is a typical example below:

Trace Dependents

Now the “Trace Dependents” on “Formulas” toolbar does exactly the opposite. This option shows which are the cells affected by values from this cell. In our example it is cell “D13”. Interesting part is, if we click the “Trace Dependent” again, it runs the dependency in recursion. It can give you an visual treat like below on values that can get affected because of “D13” (in recursion) in our example.

This is a powerful representation and can be quite useful too. To remove the arrows, use the “Remove Arrows” button from “Formulas” toolbar.

Conclusion

How cool is this? Did you find it useful? Have you used this feature in the past? Do let me know how you have used this feature in your daily life. More such fun coming your way this week :).

Continue reading...


 

Introduction to DAX in Excel May 27th, 2013

Vinod Kumar

DAX (Data Analysis Expression) was first introduced with PowerPivot as part of SQL Server 2008 R2 release. It is an expression language following the similar syntax of Excel formula, enabling Excel power users and BI developers the ability to write calculations inside PowerPivot workbook to extend PowerPivot’s analytical capability. DAX can be used to create a calculated column inside a PowerPivot table or a calculated measure dynamically evaluated inside the PivotTable against the PowerPivot data source. The details and implementation of this will be for future blog posts. In this blog post:

  1. Introduce DAX
  2. Enhancements with SQL Server 2012
  3. Functions available with DAX
  4. How are they different from Excel Functions
  5. How are they different from MDX functions

In V1 release of SQL Server 2008 R2, DAX supports functions which perform:

  1. Common mathematic and statistical functions, such as CEILING(), FLOOR(), ABS(), AVERAGE(), MIN(), MAX()
  2. Logical functions, such as IF(), TRUE(), FALSE()
  3. Informational functions, such as ISERROR(), ISBLANK()
  4. Date and Time functions, such as YEAR(), DATE(), MONTH()
  5. Filter function, such as FILTER()
  6. Functions that handle relationship of the tables, such as RELATED(), RELATEDTABLE()
  7. Functions that control the current context of the evaluation, such as VALUES(), EARLIER(), EARLIEST(), CALCULATE().
  8. Time Intelligence functions to allow analysis over time, such as PARALLELPERIOD(), CLOSINGBALANCEMONTH(), OPENNINGBALANCEMONTH()
What is new in SQL Server 2012

SQL Server 2012 has enhanced DAX functionality and removed some of the limitations from the V1 release to meet the following goals:

  1. Extend the functions available with SQL Server 2008 R2 release. These new functions not only expand the analytical capabilities, but also make authoring DAX calculations easier.
  2. Supports Power View report which uses BISM tabular database as the backend. This includes the new table queries, parameters and variables.

The list below offers a quick glance on the new functions in SQL Server 2012. The details on these functions will be covered in the later blogs.

Filter Functions
  1. HASONEFILTER
  2. HASONEVALUE
  3. ISCROSSFILTERED
  4. ISFILTERED
  5. ALLSELECTED
Informational Functions
  1. CUSTOMDATA
  2. CONTAINS
  3. LOOKUPVALUE

The following new functions are added to create parent child relationship: 

  1. PATH
  2. PATHCONTAINS
  3. PATHITEM
  4. PATHITEMREVERSE
  5. PATHLENGTH
  6. USERNAME
  7. USERELATIONSHIP
Logical Functions
  1. SWITCH
Math Functions
  1. CURRENCY
Statistical Functions
  1. ADDCOLUMNS
  2. CROSSJOIN
  3. DISTINCTCOUNT
  4. GENERATE
  5. GENERATEALL
  6. ROW
  7. STDEV.P
  8. STDEV.S
  9. STDEVX.P
  10. STDEVX.S
  11. SUMMARIZE
  12. TOPN
  13. VAR.P
  14. VAR.S
  15. VARX.P
  16. VARX.S
Basic syntax of DAX

A DAX expression always begins with an equal sign followed by the formula. The formula can contain constant values, DAX functions or the combination of the two. For instance,

= 1.1 * SUM(‘FactInternetSale’[SaleAmount])

= ‘Customer’[FName] & ‘, ‘ & ‘Customer’[LName]

All DAX functions share the common syntax as below,

DAXfunctionName(argument1, argument2, ….)

Depending on the function, argument can be a table expression (that returns a table), a column name or an explicit value. Table name in DAX needs to be enclosed by the single quotation ‘table name ‘ if the table name contains a white space between the characters, a special character or a reserved word. Column name must always be enclosed in []. It is not required to precede column name with the table name as in ‘FactSales’[SaleAmount], but it is highly recommended to fully qualify the column name to avoid any potential ambiguity when resolving a column name.

Data type supported in DAX

The data type for a column can be:

  1. Text
  2. Float
  3. Whole number
  4. Currency
  5. Date
  6. Boolean (True/False).
Difference between DAX and Excel formula

Even though DAX follows the same syntax convention as the Excel formula, there are fundamental differences between the two.

  1. DAX will only work with PowerPivot workbook and PivotTable created from the PowerPivot workbook. DAX cannot be consumed by regular non PowerPivot workbook or non PowerPivot PivotTable. Similarly, the regular Excel functions that are not implemented in DAX cannot be used in PowerPivot workbook or PowerPivot PivotTable.
  2. DAX is built upon the relational database concept, i.e. table and table relationship. Consequently, functions utilizing relationship provided in DAX. There are no such functionalities in Excel.
  3. DAX operates on entire table or entire column, i.e. DAX cannot operate on an individual cell, or a range/array of cells.
  4. To work with In Memory data, DAX has its own implementation on the common native Excel aggregation functions, such as SUM, AVERAGE, MIN, MAX, COUNT, which only takes column as the argument, unlike the native Excel functions which can take a list of ranges of cells as the function arguments.
  5. DAX has new aggregation functions that aggregates an expression over the rows of a table, such as SUMX, AVERAGEX, MINX, MAXX, COUNTX.
  6. DAX calculated measure provides dynamic aggregation based on the current filter context as defined by the members in the Row label, Column label, Value field, Slicers and Report Filter in the PivotTable.
  7. DAX provides Time Intelligence capabilities.
  8. DAX functions that returns a table can be used as the intermediate result to other DAX function that returns a single scalar value.
  9. The return data type may be different for the functions that share the same name in DAX and Excel, for instance, date and time functions return datetime data type in DAX. The same set of functions return integer in Excel.
  10. DAX supports several different data types such as Integer, Double, Datetime, String, Currency, Decimal, etc. In Excel, everything is either a number (double) or a string. Numbers are then formatted to appear as dates or as currency or with a fixed number of decimals. This use of formatting in Excel is different from having distinct data types as in PowerPivot.
Difference between DAX and MDX
  1. MDX is primarily a query language which asks for the specific data from the multi-dimensional Analysis Services database. MDX can also be used to create calculations in the traditional Analysis Services database, including calculated measures, calculated members, scope assignment, custom rollup etc.
  2. DAX is an expression language which allows Excel power user to create a calculated column in PowerPivot workbook or a calculated measure in Pivot table based on the PowerPivot workbook, using the familiar Excel formula syntax. DAX is not designed to replace MDX.
  3. MDX is based on multi-dimensional objects such as dimensions, measure groups, attributes, and hierarchies. MDX syntax includes notation for sets and tuples.
  4. DAX is based on relational constructs such as tables, columns, and relationships. DAX syntax is designed to mimic the syntax of Excel formulas.
  5. Inside PivotTable against PowerPivot data, Excel generates and sends MDX query to SSAS engine when user drags and drops members onto Row, Column, and Value fields.
  6. A DAX calculated measure or calculated column can only return one data type, while MDX treats measure as variant data type and one measure can return different data type based on the calculation condition. For example, inside the IF statement If (condition, expr1, expr2) in DAX, both expressions need to return the same data type, while in MDX, one expression can return a number and another returns a string.

Final Words

This is just a start to many more blog posts to come on DAX. Do let me know if you learnt something new today. I have seen customers ask these questions time and again when I show them Excel and DAX functionality. Thought this will be a dump of these conversations for reference to all. Thanks for reading this far.

Continue reading...


 

Excel Tip – Find invalid data January 28th, 2013

Vinod Kumar

Recently in our SQL Server Bangalore Usergroup we had an interesting question and I thought to write this blog so that others can also benefit from the same. The question from our member was, they have an Excel sheet which is a dump of data from another system (some Export). His problem involved identifying the invalid records from that dataset of dates which the file contains. Here we are not going to talk about moving the records, but in this post we will try to quickly identify which of these are invalid rows.

One possible Solution

I don’t want to say this is the ONLY option. But this for sure has been the easiest option for me. I would love to hear if you have other methods. We can use macros and other mechanisms too. But that is out of scope of this blog.

I start the task by formatting our column in the format it has been presented to us. For this I have used a quick format option by selecting the “column B” in this example. We can select custom format based on the input we receive.

image

Next we will use the DATA Tab to add some validations. Here I have selected “Data Validations” and given some range based on the values I have got. We can also give values “greater than”, “lesser than” etc. In our example I have given between two date ranges.

image

Now the interesting part comes. Use the drop down of “Data Validation” and select “Circle Invalid Data”.

image

The magic of Excel starts and we can see the invalid rows marked. The sample output looks like this:

image

Hope you enjoyed this exploration. These options have been inside Excel for a long time, we just need to identify them and explore these options to make Excel out tool for productivity. If you want to remove the validation Circles, just select “Data Validation” and “Clear Validation Circles”.

In future blogs, I will share other tips that I come across using Excel and other Office productivity tools. Do feel free to drop-in your comments if you found this interesting.

Continue reading...


 

MS Access functions inside SQL Server January 23rd, 2013

Vinod Kumar

Many a times an enterprise application has its roots in smaller application developed using a small-scale backend database services. Microsoft Access is a premier Rapid Application Development tool which a rich client application using JET engine. When such application needs to be migrated to use Microsoft SQL Server engine or SQL Azure, there is a challenge in porting the code. Since MS Access database provides access to certain expression calculation and built-in functions, it may become a non-trivial exercise to MS Access based application. To assist with this, SQL Server 2012 has introduced few built-in functions, which are syntactically and semantically same as MS Access.

CHOOSE

Returns the item at the specified index from a list of values.

Usage: CHOOSE ( index, val_1, val_2 [, val_n ] )

Post from SQLAuthority.

DATEFROMPARTS

DATETIME2FROMPARTS

DATETIMEFROMPARTS

DATETIMEOFFSETFROMPARTS

TIMEFROMPARTS

SMALLDATETIMEFROMPARTS

Returns a specific date or datetime data type value for the specified year, month, and day.

Usage: DATEFROMPARTS ( year, month, day )

  1. DATETIME2FROMPARTS ( year, month, day, hour, minute, seconds, fractions, precision )
  2. TIMEFROMPARTS ( hour, minute, seconds, fractions, precision )
  3. DATETIMEFROMPARTS ( year, month, day, hour, minute, seconds, milliseconds )
  4. DATETIMEOFFSETFROMPARTS ( year, month, day, hour, minute, seconds, fractions, hour_offset, minute_offset, precision )
  5. SMALLDATETIMEFROMPARTS ( year, month, day, hour, minute )

Post from SQLAuthority.

EOMONTH

Returns the last day of the month that contains the specified date, with an optional offset. The offset is month (and not date). This would be a good function for many Line Of Business and reporting applications. It would be quite easy to find out what was last day of month 3 months ago or 3 months from now.

Usage: EOMONTH ( start_date [, month_to_add ] )

Post from SQLAuthority.

FORMAT

Returns a value formatted with the specified format and optional culture. Recommended use of this function is to do a location (culture) aware conversion of strings to date time data types. For general conversion, CAST and CONVERT are still preferred built-in functions.

Usage: FORMAT ( value, format [, culture ] )

This function relies on existence of CLR being installed. If CLR is not installed (and or cannot be loaded in SQL Server 2012), the call to FORMAT function will fail. Also execution of this function will load CLR within SQL Server if not already loaded.

Details from SQLAuthority.

IIF

Returns one of two values, depending on whether the Boolean expression evaluates to true or false. IIF is a shorthand way for writing a CASE statement and is internally converted as such. All the limitations of CASE statement also apply to IIF.

Usage: IIF ( boolean_expression, true_value, false_value )

Post from SQLAuthority.

TRY_CONVERT

Returns a value cast to the specified data type if the cast succeeds; otherwise, returns null. The function can return error if casting to destination data type is explicitly not allowed. For example if you try using this function to cast an INT value to XML value, it will return an error (and not just return NULL).

Usage: TRY_CONVERT ( data_type [ ( length ) ], expression [, style ] )

Post from SQLAuthority.

LOG/LOG10

LOG returns the natural logarithm of the specified float expression, and optionally takes base as input. LOG10 returns the base-10 logarithm of the specified float expression.

Usage: LOG ( float_expression [, base ] )

LOG10 ( float_expression )

CONCAT

Returns a string that is the result of concatenating two or more string values. This is simply a string concatenation function. Return type is dependent on what input types are sent. Typically, return value is of highest precedent data type. For example, multiple varchar and nvarchar of less than 4000 bytes are sent, final output is of nvarchar of 4000 bytes in size (and may be truncated). On the other hand, if at least one value is nvarchar(max) or varchar(max), the final output is of nvarchar(max) size. Note, your arguments could be of non-string data type as well as long as they can be implicitly converted to string data type.

Usage: CONCAT ( string_value1, string_value2 [, string_valueN ] )

Details from SQLAuthority.

PARSE/TRY_PARSE

Returns the result of a string expression, translated to the requested data type. PARSE function will return error if cast/translation fails, while TRY_PARSE will return null if the cast fails. This can be useful function for location (culture) aware expression calculation.

Usage: TRY_PARSE ( string_value AS data_type [ USING culture ] )

PARSE ( string_value AS data_type [ USING culture ] )

Details from SQLAuthority.

Continue reading...


 

System Center 2012 Resources to bookmark–Part II July 23rd, 2012

Vinod Kumar

The number of links and resources outlined in the first post around System Center 2012 were getting really big. It had resources for System Center 2012 General, System Center Advisor, System Center Configuration Manager 2012 etc. Adding more to that list will make that post really bloat up. Hence this blog is to add more interesting resources (DPM, End Point Protection and Operations Manager) that are still part of the System Center family that need a mention. Again to reiterate, Top-level link for System Center 2012 is: http://www.microsoft.com/systemcenter.

UPDATE: To view the Part III of the links and resources on System Center 2012.

Microsoft Virtual Academy

Virtual Academy for System Center Suite on Data Protection Manager:

SCCM 2012 End Point Protection

Edge Show 7 – Operationalize Security with System Center Endpoint Protection 2012

Edge Show 10 – Office Productivity on any Device

Consumerization of IT Jump Start

  1. Keynote – Enabling the Consumerization of IT
  2. End-to-End Security & Access
  3. User Centric Application Delivery
  4. Mobile Device Management
  5. Productive with Office 365
  6. Information Protection
  7. Cloud Security and Management with Windows InTune
  8. Desktop Virtualization

Microsoft Management Summit (MMS) 2012

  • Endpoint Protection 2012: Overview
  • End-to-End Integrated Management with System Center 2012 and Forefront
  • Day-to-Day Client and Security Management on Configuration Manager 2012

How Do I:

  1. Getting started with Endpoint Protection for System Center Configuration Manager
    2012
  2. Antimalware (Endpoint Protection) policy management for System Center
    Configuration Manager 2012
  3. Endpoint Protection Dashboard and Monitoring for System Center Configuration Manager
    2012
  4. Endpoint Protections Alerts and Notifications for System Center Configuration Manager 2012
  5. Auto Deployment Rules and SUM for System Center Configuration Manager 2012
  6. Endpoint Protection Client Deployment for System Center Configuration Manager 2012

Videos and Webcasts

System Center Operations Manager & Data Protection Manager 2012 Highlights at TechEd

Should I Upgrade to SCOM 2012?

Prepare Yourself to Move to SCOM 2012

Operations Manager 2012: Overview, Setup and Configuration

Installing and Configuring System Center 2012 – Operations Manager

System Center Operations Manager 2012 Application Monitoring

TechNet Edge Show – Managing & Monitoring the Fabric with System Center 2012

Talk TechNet with Keith Combs and Matt Hester – Episode 28: “The OpsMgr Unleashed” Authors on Operations Manager 2012

How Microsoft Deployed System Center 2012 – Operations Manager

How Microsoft IT Planned and Architected its Private Cloud Infrastructure

Private Cloud Jump Start

  1. Introduction to the Microsoft Private Cloud with System Center 2012
  2. Configure & Deploy Infrastructure Components
  3. Configure & Deploy the Private Cloud Infrastructure
  4. Configure & Deploy Service Delivery & Automation
  5. Configure & Deploy Application Management
  6. Monitor & Operate Infrastructure Components
  7. Monitor & Operate the Private Cloud Infrastructure
  8. Monitor & Operate Service Delivery & Automation
  9. Monitor & Operate Application Management

Private Cloud Demo Extravaganza:

  1. Deploy Bare Metal Servers to Hyper-V with System Center 2012
  2. Multiple Hypervisors for Cloud Resources & Adding ESX Servers with System Center 2012
  3. Add Resources to a Failover Cluster with System Center 2012
  4. Service Template Creation & Deployment with System Center 2012
  5. Standardized Service Updating with System Center 2012
  6. Monitor Network Devices with System Center 2012
  7. Monitor and Automatically Resolve Issues in the Fabric with System Center 2012
  8. Create an Orchestrator Runbook and Integrate with Service Manager with System Center 2012
  9. Create Self-Service Request Offerings using the Service Catalog with System Center 2012
  10. Deliver Self-Service Request Offerings using the Service Catalog with System Center 2012
  11. Gain Insight & Visibility through Service Manager Reporting with System Center 2012
  12. Enabling Performance Monitoring with System Center 2012
  13. Creating an Application Performance Monitoring Dashboard with System Center 2012
  14. Deep Application Diagnostics & Insight with System Center 2012
  15. Managing Applications Across Private & Public Clouds with System Center 2012
  16. Managing Application Resources Across Private & Public Clouds with System Center 2012
  17. Self-Service Application Deployment with System Center 2012

Podcasts

TechNet Radio Community Corner: Microsoft MVP Islam Gomaa on System Center 2012 Data Protection Manager

Jason Buffington and Matt Hester Discuss System Center Data Protection Manager

Talk TechNet with Keith Combs and Matt Hester – Episode 30: Jason Buffington on DPM

Protecting Your Private Cloud with DPM

Getting started with Endpoint Protection for System Center Configuration Manager
2012

Antimalware (Endpoint Protection) policy management for System Center Configuration Manager 2012

Endpoint Protection Dashboard and Monitoring for System Center Configuration Manager 2012

Endpoint Protections Alerts and Notifications for System Center Configuration Manager 2012

Auto Deployment Rules and SUM for System Center Configuration Manager 2012

Endpoint Protection Client Deployment for System Center Configuration Manager 2012

Talk TechNet with Keith Combs and Matt Hester – Episode 28: “The OpsMgr Unleashed” Authors on Operations Manager 2012

IT Time – Inside Microsoft IT – Using System Center 2012 Operations Manager to Manage Your Applications

Inside Microsoft IT – An Overview of System Center 2012 Operations Manager

Virtual Lab Insider: Infrastructure and Application Performance Monitoring with System Center 2012

Articles/Documentation

System Center 2012 – Data Protection Manager

  1. Getting Started with System Center 2012 – Data Protection Manager
  2. Planning a DPM Deployment
  3. Deploying DPM
  4. Upgrading to System Center 2012 – Data Protection Manager
  5. Operations Guide
  6. DPM Cmdlet Help
  7. Troubleshooting Guide
  8. DPM Error Codes
  9. Privacy Statement

System Center Integration Pack for System Center 2012 Data Protection Manager

  • System Center 2012 Data Protection Manager Activities

Endpoint Protection

  • System Center 2012 Endpoint Protection Privacy Statement
  • Information and Support for System Center 2012 Endpoint Protection
  • Endpoint Protection Client Help
    • Why do I need antivirus and antispyware software?
    • Getting started
    • Scanning for viruses, spyware, and other potentially unwanted software
    • What’s real-time protection?
    • How do I know that Endpoint Protection is running on my computer?
    • What are virus and spyware definitions?
    • How do I remove or restore items quarantined by Endpoint Protection?
    • What is the Microsoft Active Protection Service Community?
    • Troubleshooting
    • Glossary

Endpoint Protection in Configuration Manager

  • Introduction to Endpoint Protection in Configuration Manager
  • Planning for Endpoint Protection in Configuration Manager
  • Configuring Endpoint Protection in Configuration Manager
  • Operations and Maintenance for Endpoint Protection in Configuration Manager
  • Security and Privacy for Endpoint Protection in Configuration Manager
  • Technical Reference for Endpoint Protection in Configuration Manager

 

Protecting Identity in the Cloud

Operations Manager

  • System Center 2012 – Operations Manager Cmdlet Reference
  • Operations Manager Cmdlets for UNIX and Linux

Virtual Labs

System Center 2012 Configuration Manager: Endpoint Protection RC

System Center 2012 Operations Manager: Infrastructure and Application Performance Monitoring

Wiki Links

System Center 2012 Operations Manager Survival Guide

Management Pack Authoring in Operations Manager

Visio Management Pack Designer for System Center 2012 – Operations Manager

Visual Studio Authoring Extensions for System Center 2012 – Operations Manager

Visual Studio Authoring Extensions – Visual Studio Features

Visual Studio Authoring Extensions – Example Management Pack

Configuring pseudo Elevation for UNIX and Linux Monitoring with System Center 2012 – Operations Manager

Troubleshooting UNIX/Linux Agent Discovery in System Center 2012 – Operations Manager

Useful Websites

System Center 2012 Cloud and Datacenter Management

www.dataprotectionbible.com

System Center: Data Protection Manager Engineering Team Blog

System Center 2012 Endpoint Protection

Server & Cloud Blog

System Center Team Blog

System Center 2012 Application Management

Jimmy Harper’s Operations Manager Blog

Kevin Holman’s System Center Blog

System Center: Operations Manager Engineering Blog

I hope that these links and resources will be a good bookmark for you to use later. Please feel free to share the same around !!!

Continue reading...