Solved

Percentile calculation in WebI

Posted on 2011-09-15
7
2,737 Views
Last Modified: 2013-11-16
I understand what a percentile is and know about the WebI percentile function.

I need to determine the percentile of a value in a given set.

I have a report that shows the average time spent on a project based on the location of the project.  The database has values for all locations.  The requirement in to show the average time (a measure) for the selected location but they also want the percentile based on the complete set of times for all locations.

How can I calculate that.

I suspect it may be necessary to calculate it as a universe measure but i don't have control over the universe.


mlmcc
0
Comment
Question by:mlmcc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 35

Expert Comment

by:James0628
ID: 36553826
 > ... for the selected location ...

 So the report is run for one location at a time?

 If it was run for all locations for a project, then I guess you'd just need the average time for a location and the total time for all locations, but if you don't have all locations ...

 I don't know how to handle that (my unfamiliarity with WebI is not helping :-).  I'm only posting this in case I'm wrong and you do have all locations in the report, in which case there is a slightly greater chance that I could help, but only slightly.  :-)

 James
0
 
LVL 100

Author Comment

by:mlmcc
ID: 36554151
The report as written is filtered to a single location.  However I can add a query to the report (and probably will have to) to include all locations for the time frame.

My issue is if this were Crystal, I could use a subreport to get all the locations into an array and count how many the given location was better than and divide that number by the total count.

I am still learning how to do things in WebI and don't fully understand how to loop through the data to calculate what I want.

mlmcc
0
 
LVL 35

Expert Comment

by:James0628
ID: 36555211
Sorry.  Wish I could help.  Sounds like it could be a tough one.  Good luck.

 James
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 100

Author Comment

by:mlmcc
ID: 36555258
I think we may have to build it in the universe.

mlmcc
0
 
LVL 35

Expert Comment

by:James0628
ID: 36565846
That does seem like it might be simplest, if you can do it.  Like add a total project time somewhere, so that you can just pull that into the report.  Otherwise, it seemed like the report would have to read the records for all locations, to get the total project time, but only show the location that you asked for.  That'd be easy enough to do in CR (inefficient, but easy) using suppression, but I don't know about BO.  Never had to do anything like that in BO.

 James
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 0 total points
ID: 36567430
I actually figured it out early this morning.

There is a RANK function that returns the rank of the value over the dimension.
To use it I had to add a section to the report on the dimension.

Basic formula is
(Rank(Measure;(Dimension)) / Count(Dimension) IN REPORT)

mlmcc
0
 
LVL 35

Expert Comment

by:James0628
ID: 36568565
Great.  Glad you figured it out.

 James
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Set up your parameter at the report level as usual, check the box Multi-value, and set the Data Type to String 2. Set the Stored Procedure Parameter to varchar(max)  --<---- This part here is the key to it's success Example:    @cst_key var…
Problem Statement In an SAP BI BO Integration project when a BO universe is built on a BEx query, there can be an issue of unit & formatted value objects not getting generated in a BO universe for some key figures. This results in an issue whereb…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question