98
NiUG Discove ry Orlando, FL April 16-18, Beginning IQA Kye Hittle, Director of IT Beta Theta Pi Foundation Monday, April 16, 2012

NiUG 2012 Discovery Orlando: Beginning IQA

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Beginning IQA

Kye Hittle, Director of ITBeta Theta Pi Foundation

Monday, April 16, 2012

Page 2: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What is IQA?

• Intelligent Query Architect is a browser-based reporting tool built into iMIS

• Not a third-party tool like Crystal Reports, Microsoft SQL Server Reporting Services

Page 3: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What does IQA do?

Page 4: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

IQA Finds

Page 5: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

IQA Produces Lists & Spreadsheets

Page 6: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

IQA Reports

Page 7: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Why use IQA?

• Design a query once for multiple uses• More flexible search options

Multiple parameters in one query Parameters can be calculations Flexible results display

Page 8: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Where does IQA live in iMIS?

• The nav bar in Customers, Events, and Orders modules includes a link to a module-specific IQA folder in the iMIS doc system

Page 9: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Where does IQA live in iMIS?

• Queries and the Business Object Designer (BOD) are also available under the Tools tab

Page 10: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Where does IQA live in iMIS?

…or iSA tab for older versions of i15

Page 11: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Where does IQA live in iMIS?

• IQAs are also used in many iMIS components (e.g. public views, System Setup)

• Allows you to customize some interfaces

Page 12: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

When should we use IQA?

Displaying small result sets on-screen

Page 13: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

When should we use IQA?

Results need to be live links to a Customer, Event registration, donation, etc.

Page 14: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

When should we use IQA?

Reports with many parametersCrystal Reports IQA

Page 15: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

When should we use IQA?

Extracting results into a spreadsheet

Page 16: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

When should we NOT use IQA?

Reports that require: • Formatting • Layout• Multiple levels of grouping • “Think spreadsheets”

Page 17: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Report Designers• Typically iMIS

admins & “power users”

• Create New and Edit existing IQAs

Who uses IQA?

End-users• Typically staff and

public view users• Run IQAs built by

designers

Page 18: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How End-users Run IQAs

1. Find and select IQA2. Click Run (or double-click)3. (optional) Supply filter values & click 4. (optional) Select record or extract results

Page 19: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How Report Designers create IQAs

1. Gather & Analyze reporting requirements2. Determine/create data Sources (Business

Objects) and link3. Create Filters4. Select Display fields5. (optional) Set Sorting order, Security6. Test7. Save

• IQA Design Overview

Page 20: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Gather reporting requirements

• Do we already have something similar? Where else will the organization need to use similar queries?

• Where is the data located in the iMIS interface? How is it linked?

• What filters are needed?• What columns do you need to display?

Any sorting?

• 1. Reporting Requirements

Page 21: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Analyze reporting requirements

• Do Business Objects exist to access required data?

• Are subtotals, counts or averages needed?

• Are

• 1. Reporting Requirements

Page 22: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Before we begin designing…

• Click New > Query to create from scratch• Click Edit to create from existing IQA

(recommended)• Set your IQA Edit view to Advanced to see all

options

• IQA Design Prep

Page 23: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Basic vs. Advanced Mode

• Basic Mode Define sources + filters + what to display Run or Run as Report

• Advance Mode Using Queries in iMIS searches Aggregate criteria & display SQL Expressions in queries

Page 24: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What’s a Business Object?

Business Objects are predefined or custom abstractions of iMIS database table(s) and/or

view(s)

• 2. Sources (Biz Objs) & Links

Page 25: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Business Objects are an abstraction layer

Business Objects can enable field aliases, data formatting, code lookups,

data from multiple tables/views & more

• 2. Sources (Biz Objs) & Links

IQA

Business ObjectBusines

s ObjectBusiness Object

Table or

View

iMISDatabase

Page 26: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What’s a Business Object?

Example The predefined CsContact Business Object represents a Customer record (uses Name,

Name_Fin tables)

• 2. Sources (Biz Objs) & Links

Page 27: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Choosing Business Objects

• There are hundreds of pre-built Business Objects and you will create many custom objects

• How do designers figure out which Business Objects to use?

• 2. Sources (Biz Objs) & Links

Page 28: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Choosing Business Objects

iMIS Standard Prefixes• Most built-in biz objects start with ‘Cs’• Biz Objects built for Custom Demographic

tables typically start with ‘CsDemo_’• Use Biz Obj Designer to see

tables/views/fields in each Biz Obj• …use a naming standard for custom

Business Objects (e.g. prefix with org acronym)

• 2. Sources (Biz Objs) & Links

Page 29: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to select Business Objects

1. From the Sources tab of your IQA query, click Add Source

2. From the pop-up window, select Business Object

Page 30: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Linking Business Objects

• Each Business Object must be linked to at least one other Business Object

• 2. Sources (Biz Objs) & Links

Page 31: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Linking Business Objects

• In order to link two Business Objects they must share a common field (often iMIS ID)

• The field names do not have to be identical but the data must match for a record to be included (using default link)

• This is the same concept as (inner) joining relational database tables

CsContact

•iMIS ID•Full Name•Informal•Email•…

CsActivity•ID•Activity Type•UF 1•UF 2•…

• 2. Sources (Biz Objs) & Links

Page 32: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to link Business Objects

1. Select one of the predefined links (defined by Biz Obj) OR select Custom

• 2. Sources (Biz Objs) & Links

Page 33: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to link Business Objects

2. (if Custom) Choose the field to link on for each Business Object

3. Important! Click button to save!

• 2. Sources (Biz Objs) & Links

Deletes a link

Equals is the most common link type.

Page 34: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to link Business Objects

All Sources have now been related!

• 2. Sources (Biz Objs) & Links

You will have one less Link than total

number of Biz Objs.

Page 35: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What’s a Filter?

Answer: Simply put, Filters are the selection criteria for your query.

Analogy: Excel filter function applied to a column displays only records that meet filter value(s)

• 3. Filters

Filters limit result sets.

Page 36: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What’s a Filter?

Analogy: selecting Books from the amazon sidebar after searching for football updates results to display only books

• 3. Filters

Filters limit result sets.

Page 37: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What’s a Filter?

• IQA Filters can have default values and/or be entered at IQA run-time

• Note! You may have already “filtered” results based on your Source links (e.g. if you link CsContact to CsDonations, people without gifts will be excluded*)

*unless Left Join link type is selected (discussed later)

• 3. Filters

Page 38: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to add a Filter

1. Choose <Biz Obj>.<Field> to filter from Property drop-down

2. Choose Filter Comparison

• 3. Filters

Page 39: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

3. (optional) Enable Multiple filter values

4. (optional) Enter default filter Value(s)

How to add a Filter

• 3. Filters

Multiple option only available on certain fields

and comparisons.

Page 40: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to add a Filter

5. (optional) Choose filter Prompt No = do not display filter prompt Optional = display, not required –

most flexible Required = display with asterisk

6. (optional) Rename the user prompt7. Important! Click button to save!

• 3. Filters

Page 41: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

How to edit or delete a Filter

Make changes and then click Refresh to save!

• 3. Filters

Click to delete a filter

Page 42: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Determine what fields Display

1. Set drop-down to All

2. Check/uncheck <Business Object>.<Field> to include/exclude column from results

3. Click Refresh

• 4. Display

Page 43: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

4. (optional) Enter column Alias to provide a different column heading

5. (optional) Choose column Order from sequence drop-downs on right

6. Click Refresh

Determine what fields Display

• 4. Display

If no Alias is specified, this

is used.

Page 44: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Determine Sorting order

(optional) 1. Select <Business Object>.<Field>

to sort on from Property drop-down2. Select Ascending or Descending7. Important! Click button to save!

• 5. Sorting, Security

Page 45: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Set Security options

(optional)

• 5. Sorting, Security

Page 46: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Test!

• 6. Test

Page 47: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Test!

• If no results are returned make sure that your links and default filter values are correct

• Count records or choose spot-check candidates to verify the IQA returns results you expect

• Paste SQL from first tab into SQL Management Studio (may require editing)

• 6. Test

Page 48: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Save!

Congrats! Don’t lose your work. Use Save or

Save As… to create a copy.

• 7. Save

Page 49: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Saving: Folders & naming

• Decide whether to store all IQAs inCustomers or spread out among individual iMIS modules

• Create and enforce an organizational folder (e.g. departmental, functional) and IQA naming strategy to easily find IQAs

• Create a policy among designers to make copies when they are significantly modifying an IQA – leave original for current uses

• 7. Save

Page 50: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Saving: Folders & naming

• Well thought-out folders and naming scheme give more context to IQA titles

• Use the description field when creating/updating for historical notes (unfortunately only visible to designers, not end users)

• 7. Save

Page 51: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

IQA Examples

Page 52: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Creating a Basic IQA Step-by-Step

• Query editor mode shown: “Basic” • Scenario:

Search for all members in New York state

Page 53: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 54: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 55: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 56: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 57: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 58: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 59: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 60: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 61: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 62: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 63: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

What if…

• We want to add criteria: “who’s attended a past event”

• Add a second business object

Page 64: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 65: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 66: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 67: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Add more criteria

• Add ‘meeting’ as activity type• Add date criteria too

Page 68: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cs

Cs

Page 69: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 70: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 71: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 72: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Double Rows…why?

• Customer registered for more than one event• We need a way to return only unique records…

Page 73: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 74: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 75: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Does Not Exist Relationship

• Still in Basic Mode Does not exist relationship Helps identify who hasn’t done something

• Scenario Which of my active members have never attended an

event?

Page 76: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 77: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 78: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

If we run this now

• We’ll see: Constituent records with no activities at all

• We need to add filters Which constituent Which activities

Page 79: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Adds – which Active Constituents have no activities?

Page 80: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Adds – with no event activities?

Other activities are included

Page 81: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 82: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Advanced Mode

• Alias field names• Linkable in module searches• Aggregate Queries

• Let’s take our basic query and add additional information

Page 83: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 84: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 85: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 86: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 87: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 88: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 89: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 90: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 91: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Page 92: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cheat Sheets

Page 93: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cheat Sheet: ASI IQA Reference

http://docs.imis.com/15.2/iqaqueries.htm

Page 94: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cheat Sheet: Activity Table (1/2)

Page 95: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cheat Sheet: Activity Table (2/2)

Page 96: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cheat Sheet: Addresses

http://docs.imis.com/15.2/commonaddressjoins.htm

Page 97: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Cheat Sheet: Tables/Joins

http://docs.imis.com/15.2/index.htm?turl=commonreporttablesandjoins.htm

Page 98: NiUG 2012 Discovery Orlando: Beginning IQA

NiUG Discove

ryOrlando, FL

April 16-18, 2012

Support IQA!advsol.com > Support > Tech Support > Support Request