Solved

Percentile calculation in WebI

Posted on 2011-09-15
7
2,646 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
  • 4
  • 3
7 Comments
 
LVL 34

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 34

Expert Comment

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

 James
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 100

Author Comment

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

mlmcc
0
 
LVL 34

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 34

Expert Comment

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

 James
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now