How to get meacure value for a sibling attribute in MDX
Hi,
I have a table with the following data
Activity Id
Last Activity Id
1
NULL
2
NULL
3
NULL
4
NULL
5
3
6
2
7
3
8
1
9
4
I have created a dimension "Activity" with 2 attributes : ActivityId, LastActivityId
I have a Fact table like this :
Activity Id
Count of Activities
1
10
2
12
3
34
4
45
5
32
6
23
7
56
8
34
9
56
Now getting the count by activity is straight forward, But what I need to get is the count of last activity per activity. So if I select Activity 9 the measure value should not show me 56 but should show me 45 which is count for Activity 4 as Activity 4
is the last activity for Activity 9.
So essentially if I take all activities this is what the result of MDX should be :
Activity
Count of Activities (Last)
1
NULL
2
NULL
3
NULL
4
NULL
5
34
6
12
7
34
8
10
9
45
Any suggestions on how to achieve this will be helpful.
- Girija
Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria
Hi Soma,
that will not work. The measure is related to Activity id. The measure value per row is not value for LastActivityid.
I want to show the measure value for last activity id and not this activity id. So there is an indirect relationshipid. Ideally the path would be :
Activity id --> Figure out the last activity id for this activity id --> Get the measure value for last activity id..
- Girija
Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria
Similar Messages
-
A^b = n ,How to get the value for a ?
a^b = n ===> n = Math.pow(a,b)
How to get the value for a ?
dose Java have API to get the value for a ?
Thanks for help~~~a^b = n
=>
a = n^(1/b)
So,
a = Math.pow(n,1.0/b) -
How To get Characteristic values for an Equipment in a particular Class ?
Hi All,
How i will get Characteristic values for an Equipment in a particular Class ?
Any table or FM ?
Thanks in advance
Srikanta GopeHi,
You can use the FM BAPI_OBJCL_GETDETAIL to fetch the characteristic values for an equipment from the table parameters ALLOCVALUESNUM; ALLOCVALUESCHAR; ALLOCVALUESCURR.
Or u can use the tables EQUI, KLAH, KSSK, AUSP, CABN
Regards,
Aditya -
How to get the values for the Authorization Object Fields....
Hi Everyone,
I'm pretty new to the SAP Security and have been working on the Basis sides...I created a new role in PFCG and added a few transactions (ME13) and clicked on the Authorizations tab. In there, the authorization tree is in yellow and red. After providing the Org Values, only the yellow lights remain (apart from the green one ofcourse). Now how do we get the values for the different auth obj fields that are in yellow... say for example
Conditions COND
Maintain Condition: Auth. for Use/Appl./Cond.Type/Table V_KOND_VEA
Activity 03 ACTVT
Application KAPPL
Condition table KOTABNR
Condition Type KSCHL
Usage of the condition table KVEWE
Here the values for V_KOND_VEA fields e.g. KAPPL, KOTABNR etc are missing.
My question is how do we get these values in regard to the requirement provided by the client...is it the functional guys who provide these values or else how is a security person supposed to know it...
All the help in this regard is sincerely appreciated along with the awarding of points...Hey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
How to get the values for checked and unchecked chekboxes
Hai i have using the checkbox in for loop.
I need the urgent help from anyone,
for example in the loop there is having 5 checkbox if i checked 3 of the ckeckboxes and 2 of the checkboxes are unchecked. I need to get the values for checked checkboxes and unchecked checkboxes. Because if i checked the checkboxes, those values need to be inserted into the database. Those for unchecked checkboxes values need to be deleted from the database. Can anyone help me for this
i am using the following jsp code for this. If anyone can know about this please post me the sample code.
<form name="confirmcontainer" id="confirmcontainer" method="post" action="submit.jsp">
<% for(int i=0;i<value.length;i++) {%>
<tr>
<td><input name="assigncontainer_chkbox" d="assigncontainer _chkbox" type="checkbox" value="<%=value[0]%>"></td>
<td class="bottomborder"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[1]%> </font></div></td>
<td bgcolor="#FFFFFF" class="bottomborder"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=value[2]%></font></td>
</tr>
<% } %>
<tr><td><input type="submit" name="submit" value="submit"> </td></tr>
</form>
Thanks & Regards,
TamilvananHey thanks Alex and Catastrophe for the quick response...
I'll be sitting with the functional team and reviewing the roles created.
Thanks for all the help once more
Regards,
Akash. -
How to get a value for Select One Choice in the backing bean
Friends,
Does any one have any idea, how to get the value of a selected item value from the Select One Choice component in the backing bean iin valueChangeListener method. Right now I am always getting the sequence of the selected item, instead the actual selected value. I tried using 'ValuePassTrhough=true' also.. but didn't help
Below is the my code snippet
<af:selectOneChoice value="#{bindings.country.inputValue}"
required="#{bindings.country.hints.mandatory}"
shortDesc="#{bindings.country.hints.tooltip}"
id="soc1" autoSubmit="true" valuePassThru="true"
valueChangeListener="#{pageFlowScope.Bean.onValueChange
<f:selectItems value="#{bindings.country.items}" id="si2"/>
</af:selectOneChoice>
Thanks in advance.check my other post at Re: Pass data from a variable to another page
-
How to get the value for the LIT_Withheld field in the city tax form?
I am trying to get the value for the LIT_Withheld field on the city tax form , PAYUSEET.. This is not a database column but is generated based on some conditions.. Appreciate the help. Thanks, Suguna
Hi Abhmanyu,
Thanks for your response.
Search Help Name : ZZ_MG_MARITAL_VH
Selection Method : T502T
Search help parameters are SPRSL, FAMST, FTEXT,
Can u provide me a sample code to fetch the value of corresponding text.
Thanks,
Hari -
How to get Multiple Values for a key from a session object?
Hi,
It might seem dumb but I am facing a problem here with the session object. I'll paste the session object's content from the netbeans "Local Variables" window for clarity -
Name Type Value
hsession StandardSessionFacade #66
session LWSFSession #69
inherited
attributes Hashtable #80
[0] Hashtable$Entry "cart"=>#115
key String "cart"
value DummyCart #115
item null
submit null
v Vector
[0] String Full Metal Jacket
[1] String As Good As It Gets
[2] String Tim
What I want is to get the values "Full Metal Jacket", "As Good As It Gets" and "Tim" from the session obejct?
The problem I am facing is that if I do a session.getAttribute("cart"), I'll get a single value in return. What will that value be? Will it be "item", "submit" or "v"? And if I want all the values in v above, how can I get them?
Thanks.None of the above.
HttpSession.getAttribute() will return what you put into it using HttpSession.setAttribute(). In your case, it'll return an Object which you need to cast to DummyCart. Then you can access the data in DummyCart using the API of the DummyCart class.
hth -
How to get lookup value for a lookup_type and pass as a parameter in OAF
Hi,
I have requirement wherein I have to enable the "Add Attachment" Button only for a particular deliverable name.
Steps I followed
1) I have extended the corresponding Controller class.
2) Sting str1="XYZ";
3) Getting the attachment table bean and the deliverable name thru Data Mappings as Attachment is the built-in funtionality in OAF.
4)Checking if the deliverable name whether it is equal to str1 or not
Case1: If the deliverable name is not equal to str1 then I am placing the insertallowed as BOOLEAN.FALSE
Case2:If not it will be enabled.
5)The functionality as per the requirement is working fine.
6)Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.
7) So please let me know the steps in getting the value from a lookup and have to pass the lookup values (Here str1--"XYZ","ABC","DEF") into the extended Controller Class.
Thanks in Advance,
Regards,
RamyaRamya,
Here for str1 I have hardcoded the value initially but I need to take up the value from a lookup created for this value because may be in future if for more than one value the "Add Attachment" Button has to enabled they it will be easy to add in the look up only. No need to change the controller class.For this u need to iterate through the lookup values.
Share ur existing Controller Code.
Regards,
Gyan -
Hi Gurus:
I have a layout for planning, where I can plan for 5 days of the week. I also have a day column (yesterday) where I have the actual values. Users want to edit/foecast the next 5 days values. I am using a Variable to get the Date column which uses the System Date. However, since I am getting just one date in the Function Module (Code given below), the remaining days are greyed out and I can not enter the forecast values. I would like the same variable to get a series of dates in the same function module. What changes do I nee dto make in the ABAP code so that the remaining columns (Date) becaoe available for editing??
The FM code I have to get "Today's Date" is as follows:
FUNCTION ZCSHFL_GET_TODAY.
""Local Interface:
*" IMPORTING
*" REFERENCE(I_AREA) TYPE UPC_VAR-AREA
*" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
*" REFERENCE(I_CHANM) TYPE UPC_Y_CHANM
*" REFERENCE(ITO_CHANM) TYPE UPC_YTO_CHA
*" EXPORTING
*" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
data: ls_charsel type upc_ys_charsel.
ls_charsel-seqno = 1.
ls_charsel-sign = 'I'.
ls_charsel-opt = 'EQ'.
ls_charsel-CHANM = I_chanm.
ls_charsel-low = sy-datum.
insert ls_Charsel into table eto_charsel.
ENDFUNCTION.
I want to get the Yestarday's Date as weel as dates for next 4 days from Today for this variable which are being used in the layout. Can anyone suggest the code tor this please.
Thanks very much in advance......
Best.... ShruMaaHi,
What I understand you need to return those dates from function module using parameter ETO_CHARSEL , right? If so just use this code:
ls_charsel-seqno = 1.
ls_charsel-sign = 'I'.
ls_charsel-opt = 'BT'. "we are giving ranges, so days between...
ls_charsel-CHANM = I_chanm.
ls_charsel-low = sy-datum - 1. "...first day is yesterday
ls_charsel-high = sy-datum + 4. "...and last day is 4 days from today
insert ls_Charsel into table eto_charsel.
This way you provide 5 days starting from yesterday till 4 days from today.
Regards
Marcin -
How to get numerical value for every button
Hi,
Currently I am using a case structure to determine which graph i want to display. For example, each case( i have 7 cases), there is a frequency,amplitude dial which user can change it. So basically there are 7 of those. Let say the user want to change case 1 and display those. I've plan to place a button PLAY beside the frequency dial so that it will activate the case 1. But the problem is how can i do that as the input for the case structure is numerical (0-6) to select the case. How can i activate case 1 for an example, when i click the button PLAY beside the first dial? Is it possible to change the configuration of the button PLAY, so that when its activated, it will give out numeric 1 and i wire to the case structure input? Thanks guys.Maybe you want to use a single radiobutton control with seven items?
Here's a quick example.
(Also, see what happens if you wire the radiobutton control to a case structure. )
LabVIEW Champion . Do more with less code and in less time .
Attachments:
SelectWithRadio.vi 22 KB -
How to get accurate values for select statement using single column
Hi All,
Below is my query which runs fine
Select Distinct Top 4
FiscalYearId,
FiscalMonthOfYearId
From ODS.Common.tODS_Date
Inner Join
UTL.Utility.tUTL_ProcessDate
On tODS_Date.DateShort < tUTL_ProcessDate.ProcessDate
And tUTL_ProcessDate.DatabaseName = 'ODS'
Order By
FiscalYearId Desc,
FiscalMonthOfYearId Desc
Below is the generate output
FiscalYearId FiscalMonthOfYearId
2014 2
2014 1
2013 12
2013 11
But i want to use this query in one of my where clause condition as its being used in the where clause it can only return 1 row.So, i tried something like this
Select Distinct Top 4
FiscalMonthOfYearId
From ODS.Common.tODS_Date
Inner Join
UTL.Utility.tUTL_ProcessDate
On tODS_Date.DateShort < tUTL_ProcessDate.ProcessDate
And tUTL_ProcessDate.DatabaseName = 'ODS'
Order By
FiscalMonthOfYearId Desc
And the result set of this one gives me the output like
FiscalMonthOfYearId
12
11
10
9
Which is not correct,( if you see the result set above).
Can someone please help me with any ides on this.If you want to use this query in the WHERE clause, then use it with EXISTS option which allows to return more than 1 column.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
I have one report that lists a set of rows and has a link to
drill down to another report. On the second report, I am trying
to create a link to a form and pass the value received from the
first report. I am trying to use the API
wwpro_api_parameters.get_value but I cannot figure out how to
get the value for the second parameter - p_reference_path.
Here is my code which is found in the "Additional PL/SQL Code"
section, "After displaying the Header".
declare v_id varchar2(10);
begin
v_id := wwpro_api_parameters.get_value
('id', 'a');
htp.anchor ('http://rrlehman-
lap.us.oracle.com/pls/portal30/PORTAL30.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1516531942&p_arg_names=_show_h
eader&p_arg_values=YES&p_arg_names=FRM_ID&p_arg_values=' ||
v_id, 'Create A Topic', NULL, NULL);
end;
No matter what I put in for the second variable,
p_preference_path, I do not get a value for v_id. I have
performed a search in the discussion forums and read all related
threads but I still cannot get it to work.Please, note that the second parameter of the get_value function is the identifier of the portlet instance, called in the PDK as reference path.
Here you find further information on the topic:
[list]
[*]Documentation of the wwpro_api_provider.get_value function
[*]Guidelines for Parameter Passing in Portlets
[list] -
How to get the ItemKey for a Workflow triggered by an event in Oracle Apps
Hello,
I have added a custom sub process to the seeded "OM Order Header" workflow. The process sends a notification. There are a few attributes in the body of the message tied to this notification, to which I am trying to assign values to using the syntax:
SetItemAttrText (itemtype, itemkey, attrname, attrvalue).
I have the internal names for the item type and attribute name, but don't know how to get the value for the item key. I understand the item key is supposed to be unique for each item type and is automatically generated by the workflow engine when the work flow fires. Is there a built-in function or some means to get this value?
Regards,
SmitaHave you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
Thanks,
Hussein -
How to get maximal value from the data/class for show in Map legend
I make WAD report that using Map Web Item.
I devide to four (4) classes for legend (Generate_Breaks).
I want to change default value for the class by javascript and for this,
I need to get maximal value from the class.
How to get maximal value from the data/class.
please give me solution for my problem.
Many Thx
Eddy Utomouse this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01
Maybe you are looking for
-
Equivalent of %s/string1/tring2/g
Hello, I would like to replace some string with SQL, but I do not know how to. I have this in one field: <status xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> <creation_date>2008-01-07 12:15:11</creation_date> <creator>creat
-
Hello, I am using the package INV_TM.LAUNCH to gather supply demand data into my custom temp table. For some items, I see that the ON_HAND_QUANTITY order does not match the order on the Supply Demand form. Has anyone seen this issue? Also, this packa
-
What does the lock symbol on top of the phone mean?
What does the lock symbol on the top right hand corner mean?
-
I am currently using the AMD radeon open source driver (radeonsi) with KDE and have set STEAM_RUNTIME=0 to disable the Steam native runtime. Whenever I start Steam, it takes a long time to start and I get the following output: Running Steam on arch
-
Peoplesoft Test Framework 8.53.02 Error Retrieving PeopleTools Release Information
I am recording test scripts in Peoplesoft Test Framework 8.53.02. On a number of screens I recieve an error stating "Error retrieving PeopleTools Release Information." Has anyone seen this error and knows how to troubleshoot it? Thanks for your help.