If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

What is the use of Singleton...

Started by vivek_cyno, 29 Sep 2012 07:53:11 AM

Previous topic - Next topic

vivek_cyno

Hi,

I hear lot of different answers.,

Can someone tell me the exact use of Singleton with an example please.

Thanks!

tjohnson3050

A singleton is a data container that returns a single data item without anything else.  For example, lets say you have an executive summary report showing Revenue by quarter by division in a chart, but at the top of the report, they wanted a summary that just said:

Total Sales this Period: $5,456,000

A singleton will allow you to put the total sales number without showing any column headers or row headers.

vivek_cyno

Thanks for your response.

Single value means it will show the top value? or is it possible to add two data item in one singleton?

tjohnson3050

The top value, and it will only show a single value, not two.

vivek_cyno

Hi..sorry I am still not clear .sorry to be silly.

Singleton will just display the top value of a data item?

Ex": I have a data item Sales, when I add this sales data item to singleton will it display only the top value.

blom0344

The singleton is meant to return a dataset of 1 dataitem and 1 value only, but it's definition should be exact to control the outcome. Total sales of a certain period fits the bill; only 1 value is ever returned..