Last() function issue
I have a requirement to display the Log Solution/Log Comment activities from Service Desk tickets onto the new BOXI report. With the custom formula that uses Last() function which displays only on the first record and rest it just blanks out for some unknown reason. It would be great if anyone can share a solution who has achieved a fix to such problem in BOXI.
Hi Vishnu,
I have managed to achieve the same results by the steps I have written above :
Last function displays the last record in the query result in your report and that is why it is showing you just one record. If you are planning to display the latest log comment for a service desk ticket then try creating a universe objects which displays the max([Time Object]).
Then display the log comments where [Time Object]=max([Time Object])
Time Objects is the objects which captures your timestamp whenever a comment is logged
You need to make sure that you have two different queries in your report. One containing [Time Objects] and other containing the max([Time Object])
Create another variable [Comment Flag] which says
=if([Time Objercts]=max([Time Objects]);"Y";"N")
Apply a block filter for [Comment Flag]="Y"
This should work.
Regards,
Tanisha
Similar Messages
-
Last() function in DeskI
Dear All,
I have an issue with Desk Intelligence.
I would like to obtain the last value of a list. I know that in WebI this is possible with the fuction Last() but I'm not able to do the same thing in DeskI environment.
Here below an example:
Yearmonth Varible value
201001 1
201002 1
201003 1
201004 1
201005 1
201006 1
201007 1
201008 1
201009 1
201010 1
201011 1
201012 1
I would like to obtain for example 1 in 201012 leaving the query as it is, without more filter that the ones that I have declared in my query.
Anyone can help me?
Thank youDear Pawadan,
thank you for your answer, it was my first time here and probably I didn't explain well my situation.
Here below the data that I want to summarize in my report. For each store I have 2 indicators every month:
- active number: it tells if at the end of the month a store is active. If active it is equal to 1, if not active it is 0
- sales: the amount of monthly sales per month
Besides I have two dimension: store, month (eventually also the year)
Here some data useful as example:
month 1 2 3 4 5 6 7 8 9 10 11 12
active number:
store 1 1 1 1 1 1 1 1 1 1 1 1 1
store 2 1 1 1 1 1 1 1 1 0 0 0 0
store 3 0 0 0 1 1 1 1 1 1 1 1 1
month 1 2 3 4 5 6 7 8 9 10 11 12
sales:
store 1 10 12 31 21 32 21 12 32 31 13 32 32
store 2 43 32 12 14 32 41 32 42 0 0 0 0
store 3 0 0 0 43 42 32 51 23 23 53 12 42
Suppose I'm in december (month 12) and I want for the active store (store 1 and store 3) the YTD amount of sales, that is:
sales
store 1 279
store 3 321
With WebI I'm able to do this using Last() function as follow: =Last([Store]ForEach([Month]))
It permits me to filter those stores that in december are active.
With DeskI I'm able to do this only utilizing a Where Month=12. Instead I would like to automatize the process inputing a prompt with a filter on the Month = 12.
I hope to have explained well my situation.
Thank you.
Edited by: ale.85 on Mar 9, 2011 4:38 PM -
Last Goods Issue Date & Last Goods Receipt Date
Hi ,
I would like to know in which table (and fields) I can find the "<b>Last Goods Issue Date</b> " & "<b>Last Goods Receipt Date</b>" based on Material Code, Plant and Storage location.I have to prepare a existing stock report for slow moving material.
Thanks.Hi,
Check table LIKP deliver header and LIPS deliver Item
Regards,
Prashant -
Function issue of Cross-Reference
Hi,
thanks for your attention on this topic.
there is function issue of Cross-Reference.
when click the Cross-Reference after re-installed the software (adobe Framemaker 7.10), the function is not working. please kindly check the screenshots below:
Error message below:
Please help to check this issue.
software: Adobe Framemaker 7.10
System: windows xp sp3
thanks in advance for your support .
Message was edited by: Lu StevenFire the error log off to the e-mail address indicated in the error message and then contact Adobe Support.
-
Ms Access Last function equivalent function in T-SQL
Hi,
I am new to SQL Server. I have table with information below. Some provider is listed twice in the table
Provider Code
Outlet Code
Provider
Province
Phone
First Visit Date
Last Visit Date
Supervision Score (%)
Score of Critical Steps
IUD Percentage of Critical Steps
80% Country Quality Service
Critical Step
Meet Quality Guideline
5188
01-00-0068
HENG Vuoch Eng
Banteay Meanchey
(012) 958-919
4/2/2014
4/2/2014
91.66
2.43
81.37
No
No
No
5188
01-00-0068
HENG Vuoch Eng
Banteay Meanchey
(012) 958-919
28-05-2014
28-05-2014
87.96
2.43
81.37
Yes
Yes
Yes
5410
01-00-0110
Chhuoy Pannada
Banteay Meanchey
(016) 865-985
18-03-2014
18-03-2014
85.18
2.52
84.31
Yes
Yes
Yes
5190
01-00-0123
Nhek Puthary
Banteay Meanchey
(012) 217-175
8/1/2014
8/1/2014
84.25
2.29
76.47
No
Yes
No
5190
01-00-0123
Nhek Puthary
Banteay Meanchey
(012) 217-175
22-05-2014
22-05-2014
83.33
2.29
76.47
No
Yes
No
5413
01-00-0184
Kou Mom
Banteay Meanchey
(097) 787-8280
11/2/2014
11/2/2014
89.81
2.64
90.19
n/a
Yes
n/a
5413
01-00-0184
Kou Mom
Banteay Meanchey
(097) 787-8280
27-02-2014
27-02-2014
98
2.64
90.19
Yes
Yes
Yes
5634
01-00-0264
Yoeub Chakriya
Banteay Meanchey
(012) 938-538
22-05-2014
22-05-2014
88.88
2.64
88
Yes
No
No
5542
01-00-0601
Ngann Ratha
Banteay Meanchey
(012) 201-406
20-05-2014
20-05-2014
87.81
2.23
74.33
No
Yes
No
5532
01-00-0913
Em Mouth
Banteay Meanchey
(012) 447-674
6/3/2014
6/3/2014
92.59
2.79
93.13
Yes
Yes
Yes
5532
01-00-0913
Em Mouth
Banteay Meanchey
(012) 447-674
6/6/2014
6/6/2014
92.59
2.79
93.13
Yes
Yes
Yes
5554
01-00-0920
Boa Tay
Banteay Meanchey
(012) 985-539
18-03-2014
18-03-2014
84.4
2.26
75.49
No
Yes
No
5554
01-00-0920
Boa Tay
Banteay Meanchey
(012) 985-539
17-06-2014
17-06-2014
85.18
2.26
75.49
No
Yes
No
5535
01-00-0922
Say Sav Dy
Banteay Meanchey
(012) 764-632
4/3/2014
4/3/2014
79.62
2.47
86.28
No
Yes
No
5535
01-00-0922
Say Sav Dy
Banteay Meanchey
(012) 764-632
19-06-2014
19-06-2014
79.62
2.47
86.28
Yes
No
No
5414
01-00-0963
Thorn Sao Rouey
Banteay Meanchey
(012) 673-017
9/4/2014
9/4/2014
82.4
2.58
86
Yes
Yes
Yes
In Ms Access, I can reproduce list of unique provider using the last function (see table below)
How can I do it in SQL Server?
Provider Code
Outlet Code
Provider
Province
Phone
FirstOfFirst Visit Date
LastOfLast Visit Date
LastOfSupervision Score (%)
LastOfScore of Critical Steps
LastOfIUD Percentage of Critical Steps
LastOf80% Country Quality Service
LastOfCritical Step
LastOfMeet Quality Guideline
5137
06-00-0417
Kang Sophalna
Kampong Thom
(092) 954-367
22-04-2014
22-04-2014
87.03
3
100
Yes
Yes
Yes
5138
06-00-0415
Nou Vichetra
Kampong Thom
(012) 773-102
20-03-2014
12/6/2014
96.29
3
100
Yes
Yes
Yes
5140
06-00-0254
Yim Cheng Sim
Kampong Thom
(012) 725-597
4/3/2014
6/6/2014
96.29
3
100
Yes
Yes
Yes
5143
06-00-0868
Long Chanthida
Kampong Thom
(012) 682-009
20-05-2014
20-05-2014
93.51
3
100
Yes
Yes
Yes
5145
06-00-0969
Kong Sithan
Kampong Thom
(092) 914-384
1/2/2014
1/2/2014
95.36
n/a
No
n/a
5146
06-00-0893
Kam Keng
Kampong Thom
(089) 664-617
11/3/2014
12/6/2014
87.03
3
100
Yes
Yes
Yes
5148
06-00-1035
Heng Sonath
Kampong Thom
(012) 524-063
6/3/2014
3/6/2014
92.59
3
100
Yes
Yes
Yes
5149
06-00-0845
Ieng Keatheng
Kampong Thom
(011) 667-795
18-03-2014
10/6/2014
87.96
3
100
Yes
Yes
Yes
5157
07-00-0143
Ung Chetha
Kampot
(012) 976-371
12/4/2014
12/4/2014
90.74
2.76
92.15
Yes
Yes
Yes
5188
01-00-0068
HENG Vuoch Eng
Banteay Meanchey
(012) 958-919
4/2/2014
28-05-2014
87.96
2.43
81.37
Yes
Yes
Yes
5190
01-00-0123
Nhek Puthary
Banteay Meanchey
(012) 217-175
8/1/2014
22-05-2014
83.33
2.29
76.47
No
Yes
NoWhat SQL Server version you are using? Since SS2012 we have LAST_VALUE function
http://msdn.microsoft.com/en-us/library/hh231517.aspx
SELECT * FROM
SELECT <columns>,ROW_NUMBER() OVER (PARTITION BY providercode ORDER BY date DESC) rn
) AS Der WHERE rn=1
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Last goods receipt, last goods issue and last purchase order
Hi Experts!!
is there any table/info structure where I have the last goods receipt material document number, last goods issue material document number and last purchase order number? I want to extract this information to Business Warehouse.
Best regardsAre you looking for a report similar to MB51?
If you put little more detail, i might be able to help. I don't know much about info structures but i can tell you the SAP tables.
All Movement Details are in the below tables.
MKPF- Material Document Header,
MSEG - Material Document Detail -( you can put your material, plant for selection)
Last PO - you can get it from Info-record (EINE- EBELN, EINE-EBELP).
Thanks,
Shekhar Ramineni -
LAST function in ACCESS, what's in Oracle ?
Hi
Does anyone know what would be a equivalent of LAST function in Access to Oracle ?
In Access, the Last function returns the last value from the result set of a query.
The syntax for the Last function is:
Last ( expression )
expression is the value that you'd like to return from the result set. The Last function only returns the last value in the result set.
Thanks,
AmrikSome alternative way:
SQL> select ename, deptno, sal from emp order by deptno, sal, ename desc;
ENAME DEPTNO SAL
MILLER 10 1300
CLARK 10 2450
KING 10 5000
SMITH 20 1000
ADAMS 20 1100
JONES 20 2975
SCOTT 20 3000
FORD 20 3000
JAMES 30 1120
MARTIN 30 1250
WARD 30 1450
TURNER 30 1500
ALLEN 30 1800
BLAKE 30 2850
14 rows selected.
SQL> SELECT ename
2 FROM (
3 SELECT ename,
4 ROW_NUMBER() OVER (PARTITION BY deptno ORDER BY sal desc, ename) AS rnum
5 FROM emp
6 )
7 WHERE rnum = 1;
ENAME
KING
FORD
BLAKE
SQL> select max(ename) KEEP (DENSE_RANK LAST ORDER BY sal, ename desc) from emp
2 group by deptno;
MAX(ENAME)
KING
FORD
BLAKE
Rgds. -
Key F4 to retry the last function / instruction similarly in MS-Office
Key F4 to retry the last function / instruction similarly in MS-Office ?
Your question isn't very clear on what you are trying to achieve.
I'm assuming that you're talking about capturing a user pressing the F4 button in your LabVIEW application to retry the last action/command. I think this would be possible using an event structure to detect the F4 key being pressed and using this to prompt your application to do that action/command again.
The event structure can be set up as follows:
How you actually implement this will depend on the architecture of your application - you'll need to remember the last action that was performed (perhaps on a shift register).
If you're talking about in the LabVIEW development environment itself - I don't think this is possible. You could suggest it on the LabVIEW ideas exchange though!
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets -
Report of last goods issue & consumption
Hi Experts,
I need to prepare a report which lists the material, with the information of last Goods Issue, Consumption & Goods Movement.
Please suggest some report other than MCBE..Hi
MCBV or MC.5 can be used.
Reward points if u r satisfied.
Best Regards -
How to Identify Last Command Issued by user??
Hi Everybody,
I need to create a form in which the current state of the form depends upon the last command issued by the user.
Suppose if user clicks 'delete record' or 'insert record' or 'enter-query' or something else.
So, how to identify the last event executed by the user.
Any suggestions...
Thx in advance,
RajYou can write something into a Form parameter in the POST-INSERT/UPDATE/Query triggers.
Then you can check the value of this parameter when needed. -
What is the table name for getting Last Receipt & issue date of material?
Hi Friends,
What is the table name for getting Last Receipt & issue date of material?
*Case 1:*
Here, I am running report in May 2008. But, if there is no goods receipt for the respective material since last 13th March 2007.
Then in this case Last goods receipt date should be 13th March 2007.
Please guide me.
Regards
SivaI checked MSEG table. But, I didn't find any field for date.
Can you tell me field name.
Regards
Siva -
Depending on how this discussion board works, I will attempt to update functional issues with this operating system.
9/21/13: Alarm: Setting the alarm is rather akward, the numbers are too rigid, fine, and small. I feel the numbers being larger would be more user friendly.
9/21/13 Calendar: Previous version was superior in certain ways. Shading out a part of the day which you typically don't use (ex: 1am-5:30am) would be great. I feel lost in this update, it does not feel refined. Please allow me to send an appointment through imessage already as well!Tell Apple.
http://www.apple.com/feedback/iphone.html -
Hi All!
Is there any forum related to functional issues in SD and MM.Please do forward me the names if there are any.
Regards
PavanCheck these
http://www.sapfans.com/
http://www.erpfans.com/
http://www.sap.com/community/default.epx?logonStatusCheck=0 (Login required)
Regards,
Vikas Madaan -
SGD 4.5 Desktop Functionality Issue
I've come across an odd functionality issue on SGD 4.5. When I start "My Desktop" everything works fine. However if I start a new Full JDS Desktop session on another server, the JDS session doesn't appear to load correctly. New windows automatically open in the upper left corner and can't be moved. If I close both JDS Desktop sessions and open the other system first, then "My Desktop" session doesn't open windows properly. Has anyone come across this? It's not to big of deal right now, but it might become more of an issue when more users start using our SGD instance.
Adam@JRoesler :
The script for installing the users during installation when the users are not created is included some version before the 4.50.907
The SGD version here is only 1 minor version before the latest release.
@aspenhedge:
If I look into the rpm (for Linux install) I don't see a check for a valid shell. It does however try to 'su' into those accounts. I might be wrong in this one.
Can you manually use 'su ttaserv' and 'su ttasys' without any problem? Do these users have a valid home-dir for example.
- Remold -
REPALCE() function issue. String getting truncated.
Hi,
I am using ORACLE DATABASE 11g. I am facing a very strange problem. I have a string in an variable when i print that sting i can see that the string is correct but after applying a replace function on to it when i print the string the string is incomplete.
Details are as follows :- In the code i am getting some DDL statement (alter table ) , this is the difference between the 2 compared tables. Then I want to place ';' at the last of each line and keyword 'BEGIN' at start and 'END;' at the last. I tried to do this with replace() function but the output string is shot than needed. Please follow the code :-
dbms_output.put_line('V_TAB_DIFF_ALTER:=' || V_TAB_DIFF_ALTER); -- Print the original string. Variable datatype used varchar2(32767)/CLOB
dbms_output.put_line('SOURCE Size := '||Length(V_TAB_DIFF_ALTER)); -- Size of the original string.
V_TAB_DIFF_ALTER_REP :=V_TAB_DIFF_ALTER; -- Placed the sting in new variable.
V_TAB_DIFF_ALTER_REP := 'BEGIN '||replace(V_TAB_DIFF_ALTER_REP,CHR(10),';') || ' END;'; -- Used the replace function and concatenate string.
-- EXECUTE IMMEDIATE V_TAB_DIFF_ALTER_REP;
dbms_output.put_line('After replace := '||V_TAB_DIFF_ALTER_REP); -- Now again printing the sting but this time its not proper.The output is as follows :-
V_TAB_DIFF_ALTER:=ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("BENEFICIARY_ACCOUNT_ID" VARCHAR2(32))
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("HAS_OFFSET_ACCOUNT" CHAR(1) DEFAULT 'N')
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("MARKET_ENTITY" VARCHAR2(40))
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("FUTURE_PREVIOUS_STATUS" VARCHAR2(50))
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("PREVIOUS_STATUS" VARCHAR2(50))
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("FUTURE_AS_OF_COUNTER" NUMBER)
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("FUTURE_AS_OF_DATE" DATE)
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("STMT_CYCLE_DAY" NUMBER)
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("PREVENT_EXCESS_FLAG" CHAR(1))
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("TEMP_EXCESS_START_DATE" DATE)
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("TEMP_EXCESS_EXPIRY_DATE" DATE)
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("TEMP_EXCESS_SANCTIONED_AMT" NUMBER)
SOURCE Size := 1830 -- Length of original string.
After replace := BEGIN ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("BENEFICIARY_ACCOUNT_ID" VARCHAR2(32));
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("HAS_OFFSET_ACCOUNT" CHAR(1) DEFAULT 'N');
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("MARKET_ENTITY" VARCHAR2(40));
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("FUTURE_PREVIOUS_STATUS" VARCHAR2(50));
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("PREVIOUS_STATUS" VARCHAR2(50));
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("FUTURE_AS_OF_COUNTER" NUMBER);
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("FUTURE_AS_OF_DATE" DATE);
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("STMT_CYCLE_DAY" NUMBER);
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("PREVENT_EXCESS_FLAG" CHAR(1));
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("TEMP_EXCESS_START_DATE" DATE);
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("TEMP_EXCESS_EXPIRY_DATE" DATE);
ALTER TABLE "NGPR2ST"."FLX_DD_ACCOUNTS_B" ADD ("TEMP_EXCESS_SANCTIONE ------ Here the remaining string is missing.
NEW Var. Length :- 1862 -- Length of the new string but still the printed string is not the perfect one. It only prints 1830 characters, rest are not printed.
{code}
Here you can see that the sting in after replace in actually short and will give error when trying to execute. As you can also see that length of new string is more i.e. 1862 but its reading and writing only 1830 characters => which is the actual size of original string.
Variable datatypes used varchar2(32767) and CLOB. Faced issues in both the cases.
Its very obvious that when i am trying to replace a few things then I can add a bit more to it. Why is it only reading or writing only the 1830 character string not the whole 1862 string ??? How can i get the size as 1862 but not the whole string ??
Let me know any solution on this ...
Thanks in advance.
Edited by: VIRU on Nov 17, 2011 10:24 PMThanks William for your reply.
I have tried with increasing the buffer size by
exec dnms_output.enable(40000000);but still no improvements.
I was able to successful print long strings than this one but when it comes to format it with replace i am facing this scenario.
Let me know if you have any idea.
Maybe you are looking for
-
Process: Zombies Ate My Friends [989] Path: /Applications/Zombies Ate My Friends.app/Contents/MacOS/Zombies Ate My Friends Identifier: com.glu.macos.zamf1 Version: 1.0.1 (1.0.1) App Item ID: 642547094 App External
-
Cisco ISE 1.2 Checking DACL Syntax
Greetings, When we first set up all of the DACLs for our ISE deployment, it was explained to us that the "!" was a replacement for the "remark" entry on the access list, but when I utilize the "Check DACL Syntax", ISE tells me that my statements are
-
Getting TNS problem while using SQLLDR unix command
I have ons shell file (finalloader1.sh) which contains below lines of code to load a text file (data.txt) into an oracle table. export ORACLE_HOME=/opt/oracle/product/11.2.0.3/client export TNS_ADMIN=/sys_apps/admnapps/loadingplace/bin export ORACLE_
-
Can't re-install iPhoto '11 from DVD disc
After having trouble with iPhoto hanging my Mac on trying to launch 18 months ago, I bought Aperture and have been using it. I also got a video card replacement. Now, I want to re-install iPhoto from the iLife '11 DVD I bought, and use the calendar
-
Clean MacBook HD with Snow Leopard Disk?
I recently purchased a new MacBook Pro and want to give my 2+ year old MacBook (first gen aluminum, shipped with Leopard and upgraded to Snow Leopard) to a friend. Can I clean the MacBook hard drive with a retail Snow Leopard disk or must I use the o