sql pass bac - 60 reporting tips in 60 minutes
TRANSCRIPT
![Page 1: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/1.jpg)
60 Reporting Tips in 60 Minutes
April 20 - 22, 2015 | Santa Clara, CAIke Ellis
Partner
Crafting Bytes
![Page 2: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/2.jpg)
SSRS: HTML color picker websites
![Page 3: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/3.jpg)
SSRS: Skip GIS, use MorgueFile
![Page 4: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/4.jpg)
SSMS: Query Shortcuts
SELECT COUNT(*) FROM
SELECT TOP 100 * FROM
![Page 5: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/5.jpg)
SSMS: Don’t forget the splitter bar
![Page 6: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/6.jpg)
SSMS: Comment Shortcut Key
CTRL-K, C
CTRL-K, U
![Page 7: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/7.jpg)
Lifehack: Start 2014 with a jar and fill it with notes of good things that happen
Next New Year’s Eve, empty the jar and see what awesome
stuff happened that year.
![Page 8: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/8.jpg)
Performance: Check for heaps/clustered indexesSELECT t.[Name] FROM sys.Indexes i
JOIN sys.Tables t
ON t.Object_ID = i.Object_id
WHERE i.type_desc = 'HEAP'
ORDER BY t.[Name]
![Page 9: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/9.jpg)
Performance: Index all the keys
select object_name(c.object_id), c.name from sys.columns c
where c.name like '%id'
and c.object_id not in
(
select object_id
from sys.index_columns
)
![Page 10: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/10.jpg)
Lifehack: Readable Presentations
Take the average age of the people in your audience and
divide by 2: That’s your font size
Do you want to know what I think you’re average is? My font size is
typically 20 – 24.
![Page 11: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/11.jpg)
SSIS: The proper way to execute an SSIS package
![Page 12: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/12.jpg)
Power BI - Visualization: Bad Dashboard
![Page 13: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/13.jpg)
Power BI - Visualization: Use color sparingly.
In nature, colors do two things:
1) Entice
2) Warn
So let’s use them sparingly..WARNING: POISON FROG!
![Page 14: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/14.jpg)
Power BI -Visualization: Stephen Few
![Page 15: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/15.jpg)
Power BI - Visualization: Cynthia Brewer
![Page 16: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/16.jpg)
Power BI: Tips for Visualization
Make the most important information the biggest
Put it in the upper-left corner
![Page 17: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/17.jpg)
T-SQL: No reason to use ISNULL CONCAT!Messy vs clean code
No + symbol needed
No ISNULL needed
![Page 18: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/18.jpg)
Lifehack: If you backpack, but need news, search Wikipedia by month & year
![Page 19: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/19.jpg)
Search Schema: Object Explorer Details
F7
![Page 20: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/20.jpg)
Search Schema: T-SQL
select object_name(object_id), definition as name
from sys.all_sql_modules
where definition like '%cust%'
![Page 21: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/21.jpg)
Search Schema: SQL Search - Free
![Page 22: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/22.jpg)
SSDT: Search options
Spotlight
![Page 23: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/23.jpg)
T-SQL: Use windowing functions
Neat evolution
![Page 24: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/24.jpg)
Lifehack: Presentation tip
![Page 25: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/25.jpg)
T-SQL: Prettify!
http://extras.sqlservercentral.com/prettifier/prettifier.aspx
RedGate PlugIn for SQL Server Management Studio
![Page 26: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/26.jpg)
TSQL: Or use SQLPrompt - RedGate
![Page 27: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/27.jpg)
T-SQL: Execute scripts over multiple servers
![Page 28: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/28.jpg)
Tip: Life is so easy with a dates table
Find the sales numbers for the first Monday of every month
of the year
T-SQL with no dates table
T-SQL with dates table
![Page 29: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/29.jpg)
Lifehack: Motorcyclist signaling cop to other motorcyclist
Looks like a siren on top!
![Page 30: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/30.jpg)
T-SQL: Try_Cast
Avoiding terrible casting errors
![Page 31: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/31.jpg)
T-SQL: Never reinvent the wheel – SQL#
Take SQL# for example
Good Documentation
Easy Syntax
Cheap (and much of it is free)
![Page 32: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/32.jpg)
LIfehack: If you take a power strip to the airport during the winter, you’ll be a hero
![Page 33: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/33.jpg)
T-SQL: Save scripts in a project for easy navigation
![Page 34: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/34.jpg)
SSRS: Log, Log, Log (and beware of subscriptions)select c.Name
, e.InstanceName
, e.UserName
, e.Parameters
, e.TimeStart
, e.TimeEnd
, e.TimeDataRetrieval
, e.TimeProcessing
, e.TimeRendering
from executionlog e
join catalog c
on e.reportid = c.ItemID
Send a Link, or a file on a shared folder that you can audit. Find someway to audit who opened the link or the file
in the folder. Try to avoid sending the PDF without a way to audit it.
![Page 35: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/35.jpg)
Performance: Big linesWhen troubleshooting, thick rows means lots of data, thin rows mean not much data.
You’re probably better off following the thick rows.
![Page 36: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/36.jpg)
Lifehack: Today’s most precious commodity – FOCUS!
![Page 37: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/37.jpg)
SSRS: Store colors in the database
Colors = Business Logic
Put it in the database
Use Expressions to read the colors
Include action colors and levels
![Page 38: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/38.jpg)
SSRS: Get Buy-in to Export to Single FormatBuild to export to a single format
• Excel
• Word
• Web
Then get buy-in and make it a standard in the organization
Demo: Build to export to excel
![Page 39: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/39.jpg)
Manage: Alias, Obscure, and De-couple
Views, Aliases
![Page 40: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/40.jpg)
Lifehack: Keep notes daily on what you doMakes CVs easier
Makes reviews easier
Makes promotions easier
![Page 41: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/41.jpg)
SSAS: Views are better than DSVs
• Easier to manage
• Can use SQL Search tools
• Can use SQL Dependency Tools
• Have a set of views only used by analysis services..so you
can change them without telling anyone else
![Page 42: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/42.jpg)
SSRS: Used Linked Reports to Manage Security• Allows you to use Role assignments and
• Not have duplicate reports in folders
• Not have users in folders they shouldn’t be in
• Not manage security on individual reports
![Page 43: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/43.jpg)
Management: Use Active Directory for report security and cube securityUser
Active Directory Group
Permission
One group – One Report
![Page 44: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/44.jpg)
Management: Keep Report Quantity SmallToo many reports means that there are more things to keep
consistent
Reports that aren’t used, tend to get forgotten, and then
used with bad data
![Page 45: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/45.jpg)
Manage: Interview one person at a time when gathering requirements
![Page 46: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/46.jpg)
Manage: Find the key person
• They know a lot
• They have time
• They respond quickly
• They are most often right
• They might not be
likeable, and that’s OK
• Success – Work in their
office
![Page 47: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/47.jpg)
Lifehack: If you want ambient light, do this
![Page 48: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/48.jpg)
SSAS: Change one thing at a time
And break calculations down to their simplest form, deploy,
test, and change one more thing.
![Page 49: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/49.jpg)
Manage: Very few KPIs and numbers!
""The well-intentioned desire to be great at everything is
precisely what leads to exhausted
mediocrity" https://www.youtube.com/watch?v=DWKvSG_
9s5I"
Walmart customer service
![Page 50: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/50.jpg)
SSRS: Use a report footer
Put row count there
![Page 51: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/51.jpg)
SSRS: Report footer
Put executive sponsor there & email address
![Page 52: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/52.jpg)
Data mart: Use friendly names everywhereUse spaces and long names
![Page 53: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/53.jpg)
Manage: Use a wiki for taxonomy
Record owner
Record changes
Record technical calculation
![Page 54: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/54.jpg)
Lifehack: Have the child call you
Whenever someone comes around saying "Would you like
to buy blah blah blah, my kid is going to do whatever."
I tell them, "Yes, I would love to! But your child has to be
the one to ask me." I then give them my number and say
the child can call anytime after 6pm.
![Page 55: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/55.jpg)
Career: Learn in a group
![Page 56: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/56.jpg)
SSMS: Status bar on top
![Page 57: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/57.jpg)
SSMS: Color the status bar
![Page 58: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/58.jpg)
Excel: Defer Layout Update
SSAS – Prevent load and delay when using
pivot tables.
![Page 59: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/59.jpg)
Excel: Four Directional Arrow for custom sort
![Page 60: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/60.jpg)
Excel: Sorting is by level
![Page 61: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/61.jpg)
Excel: Filter – Keep only selected items
And hide selected item.
Notice the total changes.
![Page 62: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/62.jpg)
Excel: Member Search
![Page 63: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/63.jpg)
SSMS: Script parameters
![Page 64: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/64.jpg)
Windows: Use the middle mouse button to close tabsClose windows fast
Works in Chrome, SSDT, SSMS, Excel, Everywhere
![Page 65: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/65.jpg)
SSMS: Quickly alias columns
CTRL-ALT-DOWNARROW for block selection
![Page 66: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/66.jpg)
Manage: How to share passwords
![Page 67: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/67.jpg)
LAST TIP! My YouTube Channel!
https://www.youtube.com/user/IkeEllisData
![Page 68: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/68.jpg)
Contact Me!
http://blog.ikeellis.com
http://www.ikeellis.com
YouTube • http://www.youtube.com/user/IkeEllisData
SQL Pass Book Readers • http://bookreaders.sqlpass.org/
San Diego Tech Immersion Group
Twitter: @ike_ellis
619.922.9801
Email address is just my first name @ikeellis.com
![Page 69: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/69.jpg)
Your feedback
is important
and valuable.
Submit by
11:59 PM PT,
April 30, 2015 to
WIN prizes
Session Evaluations
Go to
passbac2015/evals
Download the PASS
EVENT App from
your App Store and
search: PASS BAC
2015
Follow the QR code
link displayed on
session signage and
in the program
guide
![Page 70: SQL PASS BAC - 60 reporting tips in 60 minutes](https://reader030.vdocuments.net/reader030/viewer/2022032617/55ad047d1a28abdd468b4629/html5/thumbnails/70.jpg)
for attending this
session and the
PASS Business
Analytics
Conference 2015
ThankYou