Ranked list based on result
Dearall
i am working on bi7.0 how to calculate the ranks based on the resulting values.
i wont report like this.help me in resolving this issue.Let me know know if more info is needed.
thanjs
vndor profit sales plandata rankbased onsales
v1 p01 1000 700
v1 p02 5000 500
v1 p03 400 6000
6400 7200 2
v2 p04 2000 800
v2 p05 5000 500
7000 1300 1
v3 p06 400 6000
400 6000 3
thanks
Hi rama,
your requirement is bit dicey to achieve, as if you check the Keyfigure propertise for Calculation of Single Row as: we have the option of rank List available, but for calulate result row as:, we dont have the same option available.
You can give this solution a try:
1) create a formula keyfigure, as SUMCT(Sales or keyfigure for your formula calculation).
2) Then in Keyfigure properties, calculate single value as Rank List.
PS: with this approach you will get the rank value at the row level of sumct. partially solving your problem
Hope this helps...
Regards,
umesh
Similar Messages
-
Hello All ,
I have a specific requirement where I have to give a ranked listing based on the percentages . This is pretty straight forward .
To add to the complexity the ranked list should only display top n contributors contributing X percentage of the total .
To further detail the scenario
User wants a report for top contributors accounting for X % of the total business . where X is a variable to be entered by the user
Top n doesn't suite as n is unknown .
Please send pointers
Regards
NikhilHi Nikhil,
You can achieve this by creating a condition in the query designer.
Choose the create condition icon in the query designer (shiftctrlc)
Select new condition
Give a description for the condition and check the active checkbox
Choose the characteristic or characteristic combination for which this condition is to be applied.In your case it will be the characteristic 'Contributor'.
In the panel below click New.
Choose the keyfigure which is business in your case.
Select the operator Top% from the dropdown
Select the Variables entry checkbox which enables to create a variable using the wizard.Have User entry/default value as the processing type.
Click Transfer. Save and execute the query.
Thus, you have the query which displays contributors contributing to top X% of the business where X is given by the user during query run time.
Regards,
Balaji -
How can I filter a Sharepoint 2007 libarry list based on current user login?
Hi all.
I would like to know how I can filter a SharePoint library list based on current user login.
Suppose I have created the followings:
1) A SharePoint form library containing bunch of uploaded InfoPath form data.
2) The InfoPath form template contains a promoted text field called "TargetUser" to store user domain login (ex: DOMAIN\JOE) and every InfoPath form file in the library has a valid domain name stored in the "TargetUser" field.
I have created a custom view for the form library and would like to filter this view so only items whose "TargetUser" field matches current user's login ID are displayed.
I went to Edit View page to customize the view and tried to use the [Me] function but I got a "Filter value is not a valid text string" message instead when clicking OK. Apparently [Me] returns a Person/Group data type and the filter cannot compare its value
to that of "TargetUser".
I tried using text functions (ex: TEXT([Me],"") hoping to extract default string value from [Me]. The filter accepts the parameter without any error but the resulting fitlered list does not display any items at all.
I have googled this subject for hours but I have not found any solution.
It would be greatly appreciated if anyone can help me to create a functional filtered list.
FYI, my SharePoint 2007 installation is just WSS 3.0 + Form Server. I do not have MOSS 2007 (so no MOSS 2007 web parts or web services).
Thank you.
JasonHere's what I usually do in order to accomplish this. Ultimately you'll need to have 2 different fields. There's the one you already have, with DOMAIN\username stored in it. Then you'll need an additional field as a "person" column type.
Call it "TargetPerson" or something.
Create a sharepoint designer workflow that runs each time an item is created or changed. One action:
Set FIELD to VALUE.
The first FIELD is "TargetPerson", the VALUE is your "TargetUser" field.
Once this is done, then the person value is stored in the person field. This is the field that you can filter by "TargetPerson" is equal to [Me]
Laura Rogers, MCSE, MCTS
SharePoint911: SharePoint Consulting
Blog: http://www.sharepoint911.com/blogs/laura
Twitter: WonderLaura -
Problem writing a sql query for a select list based on a static LOV
Hi,
I have the following table...
VALIDATIONS
ID Number (PK)
APP_ID Number
REQUESTED Date
APPROVED Date
VALID_TIL Date
DEPT_ID Number (FK)
I have a search form with the following field item variables...
P11_DEPT_ID (select list based on dynamic LOV from depts table)
P11_VALID (select list based on static Yes/No LOV)
A report on the columns of the Validations table is shown based on the values in the search form. So far, my sql query for the report is...
SELECT v.APP_ID,
v.REQUESTED,
v.APPROVED,
v.VALID_TIL,
d.DEPT
FROM DEPTS d, VALIDATIONS v
WHERE d.DEPT_ID = v.DEPT_ID(+)
AND (d.DEPT_ID = :P11_DEPT_ID OR :P11_DEPT_ID = -1)
This query works so far. My problem is that I don't know how to do a search based on the P11_VALID item - if 'yes' is selected, then the VALID_TIL date is still valid. If 'no' is selected then the VALID_TIL date has passed.
Can anyone help me to extend my query to include this situation?
Thanks.Hello !
Let's have a look at my example:create table test
id number
,valid_til date
insert into test values( 1, sysdate-3 );
insert into test values( 2, sysdate-2 );
insert into test values( 3, sysdate-1 );
insert into test values( 4, sysdate );
insert into test values( 5, sysdate+1 );
insert into test values( 6, sysdate+2 );
commit;
select * from test;
def til=yes
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
def til=no
select *
from test
where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
=decode('&til','yes',1,-1);
drop table test; It's working fine, I've tested it.
The above changes to my first idea I did because of time portion of the DATE datatype in Oracle and therefore the wrong result for today.
For understandings:
1.) TRUNC removes the time part of DATE
2.) The difference of to date-values is the number of days between.
3.) SIGN is the mathematical function and gives -1,0 or +1 according to an negative, zero or positiv argument.
4.) DECODE is like an IF.
Inspect your LOV for the returning values. According to my example they shoul be 'yes' and 'no'. If your values are different, you may have to modify the DECODE.
Good luck,
Heinz -
Order in a Select List based in a LOV is wrong
I have a select list based upon a LOV SQL Query.
Values in table are:
FIELD
001
002
003
AAA
when I make query in SQL Workshop:
select FIELD from TABLE order by FIELD;
I get
001
002
003
AAA
But when I make a similar query in LOV the result is in the select list
AAA
001
002
003
Someone knows what is happening?
Thank
Andermhichwa wrote:
It looks like your application is running a different sort / NLS preference then is the SQL workshop. Is there a chance your application identifies a language that sorts differently then default APEX. I am just guessing but it could explain this behavior.OK, I think something like this is happening because my Oracle instance have SPANISH like a NLS_LANG parameter, but why is different result between sql Workshop and LOV query, I have installed english and spanish languages in my apex instance, I get the same problem in both cases.
Other curious think is that my min and max values are OK,
for example
BETWEEN: <select list 1> AND <select list 2>
default value for <select list 1> is
DECLARE
exitvalue varchar2(10);
BEGIN
select min(FIELD) into exitvalue
from TABLE
return (exitvalue);
END;
I get 001
default value for <select list 2> is
DECLARE
exitvalue varchar2(10);
BEGIN
select max(FIELD) into exitvalue
from TABLE
return (exitvalue);
END;
I get AAA
But select list are ordered like
AAA
001
002
003
I have based select list in a lot of different sql ways
select FIELD from TABLE ORDER BY FIELD
select FIELD from TABLE ORDER BY 1
select FIELD from TABLE ORDER BY FIELD ASC
select FIELD from TABLE ORDER BY 1 ASC
Other extraneous think is that I use DESC order I get
003
002
001
AAA
Thanks
Edited by: user10999912 on 24-Jul-2010 08:07 -
Filter based upon results of another request
How do I troubleshoot a Filter based upon results of another request issue?
I have a report that lists every account that purchased a product in May.
I have a report that lists every account that purchased a product between Jan - April.
I have a report that lists every account that purchased a product in May and also between Jan-apr. The problem is it's returning Account Names that are valid for May but not for Jan-apr and I dont' know why. It filters some but not others, interestingly enough it seems to split it down the middle.
Report A = 222 customers
Report B = 673
Report C = 111???
When I compare A to B manually I get 94.
Any ideas as to how I troubleshoot this?Worked it out ;-D
-
Hi,
Under one of my Product Group ; i have 5 Key Figures. I need to Sort based on one of these Key Figures.
When i use a condition and apply the Top N Function to it; i get repeated values of the product name in all 5 rows which do not get suppressed using the query properties.
This gets taken care of if i select single caharcterisitcs option in the condition. But using this option; the Sort applies only for the first few rows under that particular column.
Could you tell me if ranked list can be used to conduct a sort in this case . If yes - how do i use it ?
Regards
ShwetaHi Tony,
When i apply Top % to my condition ; it does sort in Descending order ; However; If i were to change your example,
Rows : Material Group
Column :Quantity
Stock
The output that i get when the sort is working is as foloows:
Material Group Quantity
Material Group Stock
and the Output that i want would be :
Material Group Quantity
Stock.
The query Property of Suppress repeated values does not apply either.
Please tell me how can i take care of this.
Regards
Shweta -
Ranking lists of Vendors(ME65)
Hi all,
iam useing Tc:ME65
i given po,vendor and weighting keys , the ranking list was displayed. in that how we can get the Av.variance ?
can any body help me.
Edited by: Dhanush on Nov 5, 2008 5:41 AMhi
Evaluation Lists - ME65
Description:
Based upon an overall vendor evaluation score, the Create Ranking List transaction generates a list of vendors in descending order. Additionally, the list displays individual main criteria and average values for the individual scores.
Preliminary Steps:
Valid vendors must exist in SAP with procurement activities against each one to be evaluated. SAP cannot evaluate, compare and rank vendors without prior procurement activity.
Detailed Steps:
1. In the iPanel, My SAP Roles, select XX: Functional All Transaction Role>ME65 - Evaluation Lists. If you are in another transaction screen, enter/nME65 in the command line and click Enter.
2. In the Ranking List of Vendors screen, enter DLA1 in Purchasing organization.
3. Enter the Vendor or range of Vendors, or click the match code button to create a list to select from.
4. If applicable, enter Vendor class.
5. If applicable, enter Scope of list.
Note: Scope of List determines the list content and structure. This value defaults to STANDARD and no change is required.
6. Enter Number of vendors to define the maximum number of vendors to be displayed.
Note: The default display value for the ranking list is 50.
6. Enter ABC indicator to display vendors classified according to DLA significance.
7. Enter the Industry sector.
8. Enter Country of supply to identify vendors from a particular country or countries.
9. Enter Weighting key to determine the weight of main ranking criteria.
10. Click Execute.
11. Review the list retrieved. To see more details, select a line item and click one of the buttons. You can select:
Evaluation
Vendor
Original list
hope it clears
regards
kunal -
Drop down list based on log in username - php mysql
I have a drop down list of client names on a php page that filters a second drop down list of site names.
At the moment, any user who logs in can see the entire list of clients, however I want to filter the list based on their username log in.
This is the entire page code, the section in bold is the drop down list in question:
<?php
if (!isset($_SESSION)) {
session_start();
$MM_authorizedUsers = "asguser,admin,member";
$MM_donotCheckaccess = "false";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
if (($strUsers == "") && false) {
$isValid = true;
return $isValid;
$MM_restrictGoTo = "accessdenied.html";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {
$MM_qsChar = "?";
$MM_referrer = $_SERVER['PHP_SELF'];
if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
$MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
$MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
header("Location: ". $MM_restrictGoTo);
exit;
?>
<html>
<body>
<script type="text/javascript">
function AjaxFunction(client_UID)
var httpxml;
try
// Firefox, Opera 8.0+, Safari
httpxml=new XMLHttpRequest();
catch (e)
// Internet Explorer
try
httpxml=new ActiveXObject("Msxml2.XMLHTTP");
catch (e)
try
httpxml=new ActiveXObject("Microsoft.XMLHTTP");
catch (e)
alert("Your browser does not support AJAX!");
return false;
function stateck()
if(httpxml.readyState==4)
var myarray=eval(httpxml.responseText);
// Before adding new we must remove previously loaded elements
for(j=document.testform.subcat.options.length-1;j>=0;j--)
document.testform.subcat.remove(j);
for (i=0;i<myarray.length;i++)
var optn = document.createElement("OPTION");
optn.text = myarray[i];
optn.value = myarray[i];
document.testform.subcat.options.add(optn);
var url="dd.php";
url=url+"?client_UID="+client_UID;
url=url+"&sid="+Math.random();
httpxml.onreadystatechange=stateck;
httpxml.open("GET",url,true);
httpxml.send(null);
</script>
<form name="testform" method='POST' action='mainck.php'>
Select first one
<select name=cat onChange="AjaxFunction(this.value);">
<option value=''>Select One</option>
<?
require "config.php";// connection to database
$q=mysql_query("SELECT DISTINCT * FROM qry_test GROUP BY client_name ASC");
while($n=mysql_fetch_array($q)){
echo "<option value=$n[client_UID]>$n[client_name]</option>";
?>
</select>
<select name=subcat>
</select><input type=submit value=submit>
</form>
</body>
</html>
I think I need to amend the sql statement to something like this - but I haven't quite got it right:
SELECT DISTINCT * FROM qry_test WHERE username = colname GROUP BY client_name ASC
Where do I drop the code for the colname info?
name:colname
type: text
default value: -1
run time value: $_SESSION['MM_Username']
Thanks!I don't do PHP but it would be something like:
$sql = sprintf (SELECT DISTINCT * FROM qry_test WHERE username = %s GROUP BY client_name ASC, $_SESSION['MM_Username'] );
or you can just embed the session variable into the sql string.
But why are you using the GROUP BY clause? If you just need a distinct list of names, use the DISTINCT keyword and reduce your select list to only the needed column. -
Invoice list based on sold to party not
Hi all,
As per my client requirement, Sold to party is one only but there will be different bill to party & Payer.
Only one main sold to party is paying all bills generated on behalf of different payer. The reason to make payer is, client wants accountability on payer wise. So sold to party is one & different payer.
Now Ii require to raise a invoice list based on sold to party wise not payer or bill to party wise.
Invoice list getting spillted because of different partner.
How to do that.
Please suggest me as soon as possible.
Thanks
ShobhitHi Shobhit
To meet your requirement you need to go with a enhancement then your requirement will be fulfilled. So you need to discuss with your Technical team also regarding this issue
Thanks and Regards
Srinath -
Create a filtered list based on the selection in another field? URGENT HELP NEEDED
Hi,
Hoping someone can help me with something I am working on. i am fairly new to creating forms in acrobat (know how to us the full range of very basic features) but I have now found myself needing some help.
i am producing an order form, and I need to create a filtered dropdown list based on the value selected in another field.
basically, when a user select the company chooses their Business Name from a dropdown list, I would like their deliver address to self populate. In some cases there may be a few options for the company delivery address so in these cases the second option would be a dropdown list of the options available for that company.
i have attached a screenshot, it is the Fields "Business Name" and "delivery Address/Delivery Postcode" that i would like to be linked so that the option in Business Name filtered the options in delivery Address
Hope someone out there has the time to help me with this, i am using Acrobat Pro DC
many Thanks
LeeThis will require a complex, custom-made script. The basic functionality of populating another field based on a selection in a drop-down is not that complicated, but if you want it to also populate other drop-downs (and then presumably use them to populate other fields), it will require a more complex solutions.
This tutorial is relevant for your question: https://acrobatusers.com/tutorials/change_another_field -
Event Receiver to create a List based on a custom template and on lookup field
Hi
I would like to have an Event Receiver who is firing by addItem in a list calls Seminarliste and is creating each time a new list based on three columns for add.Lists("Title of the list", "Description of the list", "Custom List
Template")
I have a Problem to get the LookupField Title and I am getting a Problem to create a list.
If I debug the code the bold line creates an exception ;(
The following code I have produced:
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
SPWeb spCurrentSite = properties.OpenWeb();
SPSite siteCollection = new SPSite("http://win-ue32d37ap2n");
SPWeb web = siteCollection.OpenWeb();
SPListCollection lists = web.Lists;
String curListName = properties.ListTitle;
if(curListName == "Seminarliste")
SPListItem curItem = properties.ListItem;
String curItemListName = properties.AfterProperties["Title"].ToString();
String curItemDescription = properties.AfterProperties["Beschreibung"].ToString();
// Lookup field with Option to Chose a template name
String curItemTemplate = properties.AfterProperties["Template"].ToString();
SPListTemplateCollection listTemplates = siteCollection.GetCustomListTemplates(web);
//Error by following line ...
SPListTemplate myTemplate = listTemplates[curItemTemplate];
web.Lists.Add(curItemListName, curItemDescription, myTemplate);
If somebody had a similar problem in the past and could advice it would be most appreciated ;-)
Thanks in advance ;-)
Kind regards Michael DamaschkeIf I understand correctly, the field you use to select the template name is a lookup field? If so, then the problem is the lookup field value is not the name of the template. It is an SPFieldLookupValue, which contains the ID and the string of the lookup.
So you want to separate the template name, like this:
if (item["LookupField"] !=
null)
string fieldValue = item["LookupField"].ToString();
SPFieldLookupValue value =
new SPFieldLookupValue(fieldValue);
int lookupListItemID = value.LookupId;
string lookupListValue = value.LookupValue;
IF you look at the fieldValue above, you will see it is something like an integer, followed by delimiter ;# and then your template name. you can always just parse the string at the ;# as well if you were so inclined. -
How can I create an IList Employee list based on my Employee class?
I'm trying to create an IList<Employee> list based on my Employee class (below). But this is erroring out. Is my employee class missing anything? How could I make this work?
private void EmployeeList()
IList<Employee> arL = new IList<Employee>(); //<<<<----errors out here
arL.Add(new Employee {Name="Mary",Gender="Female", Age=35});
arL.Add(new Employee { Name = "Bob", Gender = "Male", Age = 40 });
arL.Add(new Employee { Name = "Tom", Gender = "Male", Age = 50 });
var qm = from Employee employee in arL
where employee.Age < 50
select employee;
foreach (var m in arL)
Console.WriteLine(m.ToString());
class Employee
private string name;
private string gender;
private int age;
public string Name
get { return name; }
set { name = value; }
public string Gender
get { return gender; }
set { gender = value; }
public int Age
get {return age;}
set {age = value;}
Rich PIList is an interface, not a class. This means that it can't be instantiated (can't be "newed").
List is a class, so it can be instantiated. It implements the IList interface, which means that it must provide the functionality specified in that interface.
That's what an interface is - a definition of functionality that a class must provide. An interface is often described as a contract that a class must fulfill.
So in the code in your last post, you are saying that arL is an instance of some class that implements the IList interface, and you are then setting it to an instance of the class List. The List class implements the IList interface, so this assignment is
legit. It would also be legit to use any other class that implements IList, such as an array.
Any class that implements IList can have as much extra functionality as whoever wrote it likes, as long as it implements at least the functionality of the interface.
Sometimes you will come across a method in a library over which you have no control and which returns IList rather than list. In such a case you will be forced to do something like...
IList list = SomeMethodOrOther();
So you will have no idea what class list is an instance of, but you will know that it has the functionality of IList. This is about the only circumstance where I would recommend defining a variable as IList rather than List (but it probably won't be long
before there are some replies to this post that disagree). -
Sharepoint Online: Find an Item box is not finding all items in a list based on keyword search
I am using SharePoint Online.
I have a standard SharePoint list with a "Name" field (single line of text) and a "Description" field (multiple lines of text). The Find n Item search box is present as expected, and works very sporadically. For example, I
have an item with the word "white" in the Description field. Searching for "white" doesn't find the item. I have a number of items with the word "vending" in the Name field. Searching for vending returns some
of the items, but not all of them.
I have gone into the list settings (Advanced) and reindexed the list.
Here are two screenshots that illustrate the issue. The first is unfiltered. The second shows a filter on the word "vending". Note that some are found and some are not.
Filtered
Any idea what's going on?I am also experiencing an issue with the find. If not the same issue David is having, I suspect it is related, so I will describe it here.
I created a list based on the Contacts content type and within a standard list view, entering values in the "Find an item" box will match content of some columns, but not others. The four columns that the find misses are Position(renamed from Job Title),
Email Address, Mobile Phone, and Years Of Service (a Numeric column I added to the list). I too have re-indexed the list and retested after several hours.
Full Name and Email Address are both native columns of the Contact content type and both are Single line of text. I am able to filter the list by finding partial matches on Full Name, but not Email Address. -
In Safari, opening a web-based pdf results in a black page?
Whn I am using Safari which is the default browser on my IMAC, opening a web-based pdf results in a black page? This does not happen when using firefox. Also does not happen when opening an emailed pdf.
Back up all data.
Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
/Library/Internet Plug-ins
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.
Maybe you are looking for
-
Where is the button to purchase my entire wish list now?
How do I purchase my entire wish list.....there used to be a button to click and you could download everything. Now it seems I have to click each one...Am I missing something?
-
Usage of SQL and SQLQuery Component Oracle BPM 10g
Hey Friends, I have created SQl and SQL query catalog compoenents in Oracle BPM 10g, but unable to figure about how to use them in the BPM process. Do i need to create an automatic activity and make implemenatation as method and write java/pbl code t
-
WVRS4400N wireless router - What do i need to configure for VPN software to work?
Hi, My VPN software can't establish connection ever since i changed to the WVRS4400N router. What do i need to configure inorder to establish a VPN connection to the outside network? On a side note, i am not sure if i am on the right track but i rea
-
I am totally new to Fireworks. Previously I used Image Ready to open animations I got from my subscription site http://www.animationfactory.com. I would then pop them into Photoshop CS files and use them on the County's Government Access Channel. Now
-
Hello, When I call the getResult method of an Advice object to obtain the classifications of a user in a servlet, it returns nothing at first. But once I call the <um:getProfile> and the <pz:div> tags in a jsp page, the same servlet returns the class