32
UNIVERSE BEST PRACTICES Rob Rohloff, OEM Sales Consultant

Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

UNIVERSE BEST PRACTICES

Rob Rohloff, OEM Sales Consultant

Page 2: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 2

Universe Defined

Tips for Building the Universe

Advanced Object Creation Tips

Resolving Loops

Conclusion

AGENDA

Page 3: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 3

Copyright © 2007 Business Objects S.A. All rights reserved.

WHAT IS A UNIVERSE?

The Universe is a semantic layerthat contains metadata (data about data)

Translates the complexities of the database into business-friendly terms for end-users.

Allows for correct SQL generation

Allows manipulation of data based on the metadata and on the additional business logic in the Universe

Page 4: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 4

Copyright © 2007 Business Objects S.A. All rights reserved.

UNIVERSE: WHAT DOES IT LET YOU DO?

Simple, intuitive data analysisReport creation using business terms instead of SQL

Reuse of business logic

Automatic report drilling (by defining hierarchies)

Multiple data provider synchronization

Page 5: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 5

Copyright © 2007 Business Objects S.A. All rights reserved.

UNIVERSE: WHERE CAN YOU USE IT?

Crystal Reports

Desktop Intelligence

Web Intelligence

LiveOffice

EPM

Query as a Web Service

Data Federator

Universe

Xcelsius

Databases

Page 6: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 6

Universe Defined

Tips for Building the Universe

Advanced Object Creation Tips

Resolving Loops

Conclusion

AGENDA

Page 7: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 7

ADDING TABLES & JOINS

Build your universe piece-by-piece

Insert tables one at a time, that way it can be understood.

Do not use the automatic universe creation tool. Using this wizard will build a universe that you do not understand.

Take each table, join, cardinality etc one at a time.

Page 8: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 8

DEFINING OBJECTS

Object and class naming

Name in business terms

Remember: you are trying to enable non-technical people to build their own reports

Use object formatting

When there is a need to format an object in the same way every time it is used.

Page 9: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 9

DEFINING OBJECTS

Use complex objects

Concatenate descriptionsTranslate codesBuild common calculations into the universe whenever possibleBuild logic into your objects

Use condition objectsUsers don’t like to build conditions in the query

Define measure objects correctlyNot every number is a measure!

Page 10: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 10

Universe Defined

Tips for Building the Universe

Advanced Object Creation Tips

Resolving Loops

Conclusion

AGENDA

Page 11: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 11

TIP 1: AVOID WHERE CLAUSES

Problem: How to separate credit invoices from regular invoices into 2 separate objects?

Page 12: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 12

AVOID ‘WHERE’ CLAUSES

2 Objects: USA Sales and Germany Sales

What happens if a user pulls both objects into a query?

WHERE sales.country = ‘USA’ AND sales.country = ‘Germany’

Page 13: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 13

USE CASE STATEMENT INSTEAD

WRONG!

WHERE clauses are rarely the right answer!

Page 14: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 14

CASE STATEMENT

CORRECT!

CASE statements can “bucket” data

Page 15: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 15

CASE STATEMENT DEMO

Demonstration

Page 16: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 16

TIP 2: CUSTOM LISTS OF VALUES

Which is better?

OR

Page 17: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 17

CUSTOM LISTS OF VALUES DEMO

Demonstration

Page 18: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 18

TIP 3: USE AGGREGATION IN ALL MEASURE OBJECTS

Always perform aggregation in a measure. Why?

Measures, by definition, are aggregated

Although WebIntelligence will aggregate measure objects locally, the database is far more powerful.

If the object does not contain a SQL aggregate function such as SUM stated in its SELECT clause, no GROUP BY clause will be generated

SELECT invoices.amount vs. SELECT sum(invoices.amount)

Page 19: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 19

TIP 4: USE RELATIVE DATES

Users don’t like to fill in date prompts every time they refresh a report

Scheduling can be difficult

Page 20: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 20

RELATIVE DATES

Which is more user friendly?

Page 21: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 21

RELATIVE DATES

SELECT 'Last 7 Days' AS Date_Range,

CONVERT(smalldatetime, { fn curDATE() }) - 6 AS Begin_Date,

CONVERT(smalldatetime, { fn curDATE() }) AS End_Date

FROM dbo.syscolumns

Page 22: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 22

TIP 6: USE DYNAMIC HTML IN OBJECTS

Page 23: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 23

DYNAMIC HTML DEMO

Demonstration

Page 24: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 24

Universe Defined

Tips for Building the Universe

Advanced Object Creation Tips

Resolving Loops

Conclusion

AGENDA

Page 25: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 25

LOOPS

Definition:

More than one “path”through the SQL

Problem:

Business Objects will not know what “path” to choose

countries

customers

orders

order_lines products

f

a

b

c

d

suppliers

e

Page 26: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 26

RESOLVING LOOPS

Three possible resolutions:

Remove a joincountries

customers

orders

order_lines products

f

a

b

c

d

suppliers

e

countries

customers

orders

order_lines products

a

b

c

d

suppliers

e

Page 27: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 27

RESOLVING LOOPS

Three possible resolutions:

Remove a join

Add an aliascustomers

orders

order_lines products

a

b

c

d

suppliers

countriescountriesALIAS

customercountries

Page 28: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 28

RESOLVING LOOPS

Three possible resolutions:

Remove a join

Add an alias

Add contexts

countries

customers

orders

order_lines products

f

a

b

c

d

suppliers

e

CONTEXT 1: Suppliers

Page 29: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 29

RESOLVING LOOPS

Three possible resolutions:

Remove a join

Add an alias

Add contexts

countries

customers

orders

order_lines products

f

a

b

c

d

suppliers

e

CONTEXT 2: Customers

Page 30: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 30

Universe Defined

Tips for Building the Universe

Advanced Object Creation Tips

Resolving Loops

Conclusion

AGENDA

Page 31: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

COPYRIGHT © 2007 BUSINESS OBJECTS S.A. ALL RIGHTS RESERVED.SLIDE 31

Copyright © 2007 Business Objects S.A. All rights reserved.

CONCLUSION

The Universe is a powerful semantic layer that translates the database into business-friendly terms

It is core to all Business Objects Information & Delivery tools

Time should be taken to build it correctly using best practices

Leverage the power of the Universe to build complex objects that further simplify the user experience

Page 32: Universe Best Practices...Build your universe piece-by-piece Insert tables one at a time, that way it can be understood. Do not use the automatic universe creation tool. Using this

UNIVERSE BEST PRACTICES

End