BusinessObjects Board

Show rows with zero values

Hi All,
I have 2 Reference Tables:

  1. Product Table containing data
    Fire, Motor, Marine
  2. Channel Table containing data
    Bank, Agent, Direct

One Fact Table (having only 2 records)
Item | Product | Channel | Premium
1 | Fire | Bank |100
2 | Motor | Agent | 200

Expected Results

Section : Channel : Bank

Product | Premium
Fire | 100
Motor | 0.00
Marine | 0.00

Section : Channel : Agent

Product | Premium
Fire | 0.00
Motor | 200
Marine | 0.00

Section : Channel : Direct

Product | Premium
Fire | 0.00
Motor | 0.00
Marine | 0.00

But the result I get is

Section : Channel : Bank

Product | Premium
Fire | 100

Section : Channel : Agent

Product | Premium
Motor | 200

Section : Channel : Direct

Product | Premium

How to get achieve the expected result?


j_ove2 (BOB member since 2004-11-24)

This FAQ entry is similar conceptually. With traditional universe design, what you are asking for is impossible. You want to display data that doesn’t exist. When joining tables together, you only get data that matches … traditionally only if a “fact” exists.

To change the behavior at the database level would require outer joins. Outer joins don’t “drop” data, but are usually inefficient and usually have undesirable results for most queries, but they are an option.

The other option is to use the “two data provider” technique described in the FAQ. Essentially you are moving the “outer join” functionality to the report. As mentioned though, there are limits when crosstabs or sections are involved.

Another possibility is to create dummy data in the actual database to hold zero amounts. Not popular with the DBAs of course, but is a “last resort” option.


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)