Hi Team,
Every now and then we will have requirement to show Pie chart for multiple measures in Webi (It is quite straight and easy in EXCEL !!) .In WebI ,answer is NO .
Case
Assume we have BW data for Accounts Receivables at Document and Line Item level .To bring in all this data into WebI and deriving ageing buckets with respect to dates will hamper performance .
In BEx it is easy to derive Amount from dates into Ageing Buckets 0-30 , 31-45 and 46-60 .
So , now we have 3 key figures .
Users always keen in seeing this totals in PIE . Here starts the problem , because PIE in WebI must be derived based out of dimension values and we don’t have one.
Alternative : We will have a personal data provider (Excel/Text) with all the required bucket names as values , then create universe , use it as another data provider to build report .
Viable Solution (I’m thinking of !!)
From BI 4.1 SP6 , Free Hand SQL as a data source supports at great extension . We are going to derive the Custom dimension to build the PIE .
Pre requisites for using Free Hand SQL
We need one connection that points to any of the relational databases (SQL server/ Oracle..)
Don’t bother if there is no database in your environment .Think , luckily most of us atleast use one for BOBJ Auditing .That is going to be our relational connection !!
Code
Select '0-30' as "Ageing Bucket" UNION Select '31-45' as "Ageing Bucket" UNION Select '46-60' as "Ageing Bucket"
That’s all , our custom dimension is ready to create PIE. Use this code and run the query .
In Report
Create a variable to redefine all the 3 key figures as one measure with respect to our custom dimension .
Amount =If([Ageing Bucket]="0-30";[0-15];If([Ageing Bucket]="31-45";[31-45];If([Ageing Bucket]="46-60";[46-60])))
Create Chart
Now create PIE with Ageing Bucket Dimension (from Free Hand SQL source) and Amount variable
Hope this small piece of information saves our time .
Thank you for reading
Please share your inputs .