Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special Graphics in BO

Status
Not open for further replies.

juanjoseruiz

Programmer
Apr 24, 2006
4
ES

Good Morning from Spain:

I want to do a Circular Graphic in B.O. starting from this table that have a ranking.

Table 1

PROVIDER %Sales
Provider1 50%
Provider2 30%
Provider3 12%
Provider4 11%
Provider5 1%
Provider6 0,5%
...
...

The Graphic that i want is :


Provider1 (50%) -----
/ | \ Others (20%)
| |___
\ / / Provider2 (30%)
-----
My problem is that if i do this graphic in the original table all providers
are here, in the graphic, and i do not want this.
 
How about defining a grouping variable that creates the 3 groups you need?

Provider 1
Provider 2
Others

Ties Blom

 
The problem is that it will be dynamic. What if next time the report is run Provider3 is the 2nd highest?

My guess is that the goal is always to display the top 2 and the others. I can't think of a way to do this.

Steve Krandel
Symantec
 
Yes, you will need an extra bit in the dataprovider.

If the provider data is coming from a non-aggregate SQL, than you can work out a solution using rank() function in the universe:

Code:
RANK() OVER (PARTITION BY PROVIDER ORDER BY SALES DESC)

If you use SQL Server than you need version 2005. Earlier versions do not have OLAP functions.

This way the provider with highest sales has rank 1, the second highest sale 2 and the group 'others' 3 and higher.



Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top