Unable to apply report filter by using Previous Function
Hello,
I am new to Webi and need your expertise. I created a varible using Previous Function. The varible works fine when you view it. However, it doesn't work when I tried to apply this varible in the report filter.
Here are the varibles:
Varible A = Previous([Field A]; ([Field B]; [Field C]))
DisplayVarible = If([Varible A] = 'Letter A'; 1; 0)
I learned that when applying Display Varible in the report filtes, the Value(s) from list is grayed out. How do I fix this?
Thank you.
The objective is to find the turnaround time from one customer to the next customer. For example, you have a hair saloon shop and you want to know how long does it take when you finish one customer and start the next customer.
Customer PreviousTimeEnd Time Begin Time End Time Diff(Time Begin - Previous Time End)
A 7:00 7:30
B 7:30 7:45 8:30 15
C 8:30 9:00 9:30 30
D 9:30 9:45 10:00 15
As you can see, I can calculate the minutes difference. However, I cannot apply time difference varible in the report filter. I hope I have provided you enough info. Thank you for your help.
Similar Messages
-
Applying report filter when using OBIEE web services
Hi
Would like to know if it's possible apply report filter when using the web serivce ? Read from Oracle doc that there's this applyReportParams() method in ReportEditingService that could do the job. Can anyone confirm this ?
Currently we've tried to access the report using the WebCatalogService, read the xml and retrieve the result using the XMLViewService successfully. However there's an additional requirement to pass in the report filter on the fly.
Thanks in advanceHi Gerardnico,
I have a question regarding the OBIEE Web Services,
We are using C # for Automation code to test Obiee Analysis Web Services,while designing filter in C # to call report we are facing difficulty with Presentation Variable using Variable value. Where as it is working fine for Column value.
Note: The choice list has 2 custom values.
So please guide me in this regard.
Regards,
Pj -
Using Previous function in summary rows?
Hi,
I have a requirment, where I have to use the value got in previous column in the summary row.
The scenario is as follows.
There are Product, Quantity on Hand , Order Type and Date column. I am using cross tab, As I have to use the details of columns for each date.
So date will be spreaded across table as there are more dates.
In summary column, I would like to do a calcuation for each date. And I should use the calculated amount on one date in the next date and the calcuation continues.
I am trying to use previous function, but its showing computation error.
I am attaching a excel sheet with a sample example for easy understanding.
The calculation which I used in summary row is avialble in formula section, when we select the column.
Thanks in Advance.
Regards
GowthamHi BOCP,
Yes, I am trying to use this function in Summary after Break.
Sorry, I missed out attachment. And I didn't find a way to attach it.
Suresh,
I didn't find last() function in WebI Editor. I am using BO XI R2.
Thanks a lot.
Regards,
Gowtham Sen. -
I have a SSRS report which uses a matrix for a crosstab effect.
Each row contains about 10 score values in 10 columns respectively. I need each row to check against the previous row, and i need each score value in each column to be compared to the corresponding column score value in the previous row.
If the current score is greater than the corresponding previous score (in the previous row), then i want to change the background of the cell.
if the current score is smaller than the previous, then it's a different color.
if they are equal, or it's the first row in the matrix table, then leave white.
I have found custom code functions to use in the SSRS expression fields, but every single one of them compares against the previous COLUMN value and not the previous ROW value which is what i need. the "Previous" function would be perfect if i
could use it in a matrix but i can't. (i keep getting error "The use of a Previous aggregate function in a tablix cell is not supported"). looking around it turns out that matrices are arrange in groups and not in rows which is why Previous can't
be used and the only way is with custom code.
Please help. if you have any custom code samples that achieve what i need, please share, or give me advice on how to achieve this.
Thank youI figured it out. Maybe it can help someone else in the future:
Public Shared count as Integer = 0
Public Shared currentRow As Integer = 1
Public Shared MatrixStructures As New System.Collections.Generic.List(Of MatrixStructure)()
Public Shared Function GetCellColor(row as Integer, score as Integer)
If (row > currentRow) Then
count = 0
currentRow = row
End If
count = count + 1
Dim matrixStructure As New MatrixStructure()
matrixStructure.RowIndex = row
matrixStructure.ColumnIndex = count
matrixStructure.ScoreValue = score
MatrixStructures.Add(matrixStructure)
If score = 0 Then
Return "White"
End If
Dim val As MatrixStructure = MatrixStructures.Find(Function(s As MatrixStructure)
Return s.GetRowIndex() = row - 1 AndAlso s.GetColumnIndex() = count
End Function)
If (Not (val Is Nothing)) Then
If val.scoreValue = 0 Then
Return "White"
End If
If score >= val.scoreValue + 2 Then
Return "Green"
ElseIf score <= val.scoreValue - 2 Then
Return "Red"
End If
End If
Return "White"
End Function
Public Class MatrixStructure
Public rowIndex As Integer
Property GetRowIndex() As Integer
Get
Return rowIndex
End Get
Set(ByVal Value As Integer)
rowIndex = Value
End Set
End Property
Public columnIndex As Integer
Property GetColumnIndex() As Integer
Get
Return columnIndex
End Get
Set(ByVal Value As Integer)
columnIndex = Value
End Set
End Property
Public scoreValue As Integer
Property GetScoreValue () As Integer
Get
Return scoreValue
End Get
Set(ByVal Value As Integer)
scoreValue = Value
End Set
End Property
End Class
and to pass the current row number from the expression i use this
Ceiling(RowNumber(NOTHING) / 10)
i divide the row number by 10 because there are ten columns. if you don't know the number of columns, or it's a variable number, then return it from the stored procedure query in the first place. that's what I had to do -
How to filter group using in function
Hey
i am trying to do a group filter in the data model using IN function
g.segment3 in ('401000', '401010', '401020', '409100')
how can i configure the filter is in one of these values ?
i tried the
g.segment3 in ('401000', '401010', '401020', '409100') but its showing me an error
any reason why ?
thanksHey
i am trying to do a group filter in the data model using IN function
g.segment3 in ('401000', '401010', '401020', '409100')
how can i configure the filter is in one of these values ?
i tried the
g.segment3 in ('401000', '401010', '401020', '409100') but its showing me an error
any reason why ?
thanks -
Interactive Reports - Filter Criteria Using Other Operators
Currently using version 3.1.2.
Is there any way to specify the operators that are used for filter criteria on an interactive report?
Trying to specify the following criteria...
LASTNAME like 'B%'
OR
LASTNAME like 'A%'
The interactive report uses an "AND" in this case instead of an "OR".
Any ideas?
Thanks,
KrisAny comments would be very much appreciated.
Many thanks -
Unable to run reports from forms using run_report_object
Hi All,
I am unable to run a report(9i) from forms(9i) in client side.
I used the following code
Declare
repid REPORT_OBJECT;
v_rep varchar2(100);
rep_status varchar2(20);
Begin
repid := FIND_REPORT_OBJECT('report4');
v_rep := RUN_REPORT_OBJECT(repid);
End;
I get the following error
FRM-41219 : Cannot find report:invalid ID.
Any help will be highly appreciated.
Thanks,
SanjayHi All,
I am unable to run a report(9i) from forms(9i) in client side.
I used the following code
Declare
repid REPORT_OBJECT;
v_rep varchar2(100);
rep_status varchar2(20);
Begin
repid := FIND_REPORT_OBJECT('report4');
v_rep := RUN_REPORT_OBJECT(repid);
End;
I get the following error
FRM-41219 : Cannot find report:invalid ID.
Any help will be highly appreciated.
Thanks,
Sanjay Hi
You have to create a report object within the form.
If you look at the Object NAvigator in the Form Builder right below Record Group
tou would see an option for Report. Create a new report object.
Set the following properties for that object
Filename - This should be the name of your RDF file you created from Report Builder along with the full path.
Set the Execution Mode, Communication Mode and Report Destination Type as per your requirements.
In the parameter for find_report_object() pass the name of the report object you created.
eg.
if the name of the report object you created is Report2 then
your call should be rep_id := find_report_object('Report2') .
You are calling the report object which has been created in your form builder and through that call you are running the report file specified in the Filename property of that report object.
Regards
Poorvi -
Unable to apply SPS23 Java Stack using JSPM
Hi,
i'm having serious trouble getting JSPM to apply SPS23 for Solution Manager 7.0 EHP1. JSPM always rejected the XML file downloaded from Solution Manager or OSS. There are two different scenarios.
1. JSPM can't find ISDOTNET8SP01_00-10007435.SAR in EPS/in. When i copy the file to EPS/in he rejected to apply the stack because ISDOTNET8SP01_00-10007435.SAR isn't a valid SCA file. How smart JSPM is.
2. Tried a xml stack definition file downloaded from OSS. Now JSPM rejected to apply because he couldn't find new versions of the component. The log file (SCAN...) says : ...WARNING The same or newer version of software component BASETABLES and vendor sap.com is deployed on the system. The release and version of the software component, which is found in the Inbox directory, are 7.01 and 6.0, and the release and version of the software component, which is deployed on the system, are 7.00 and 14.0.
Know, it though 7.01 is newer than 7.00 but JSPM thinks different. As the message is the same for all components in the end JSPM didn't find anything to apply and rejected the complete stack. Trying to apply as single stack wasn't successful too as he didn't find any target SP Level.
Any clue ?
We urgently need to complete the EHP1 update to start the ERP 6.0 upgrade which would already be finished if not for Solution Manager requirement to download the EHP4 stack.
RegardsSolution found !
You need to update JSPM at least to 7.00 SP17 (7.00.17. Note 1280791).
Restart JSPM, apply Stack which will update JSPM to 7.01.6.0.
Restart JSPM nd now the rest of the Stack could be upgraded to 7.01.6.0.
JSPM 7.00.14.3 or lower will not recognize the JSPM 7.01.6.0 update SCA which is need in order to update the other components to 7.01.6 as well.
Regards -
[WebIntelligence Reporting] How to use count function with condition !?
Post Author: xuanthuyit
CA Forum: WebIntelligence Reporting
Hi everyone,
I want to make a report like this with WebIntelligence reporting.
I want to show the number of Outlet of each chanel (Horeca, Grocery, Convenience) at the end of report !
But I don't know how to do that with WebIntelligence Reporting.
Please help asap. . .
Thank you verry much,Post Author: jsanzone
CA Forum: WebIntelligence Reporting
xuanthuyit:
Apparently =count() [and use of a where] was permissible in previous versions of BusObjects, however, things in XI are different (as other users tell me, being XI is my first experience w/ BusObj...), so anyhow, here is the solution to your question.
You will have have to create two variables for each condition you have. One variable will be the "helper" and the other variable will be the "worker". For instance, create a variable called channel_x and the formula: =if(channel="haney";<metric>;0) (where "haney" is the name of your organization and <metric> is the metric you are using to count or sum things in your report). Once channel_x is saved create another variable called channel_x_count and the formula: =sum([channel_x]). Once channel_x_count is saved, then on your report towards the bottom you can use the Template bar to drag in a new table (perhaps you want to use the Horizontal Table type), and then you can drag channel_x_count into your new table. You will have to repeat the creations of more channel_x type variables (maybe call it channel_y and channel_y_count) or something more descriptive, but in any case substitute the "haney" constant for the next store you want to track, etc, etc. -
Calling databse function from report end. Using Evaluate function.
Hi All,
We have a req where we need to call the backend functions from the report end. I have seen that Evaluate function can be used to do the same. I tried replicating the same same but it didnt work.
Can any one please elaborate more on this. Syntax & other details. We need to also pass on parameters to the function, probably some column value.
Also please do let me know where all changes need to be done... RPD etc if applicable.
This is the functiion we need to replicate in OBIEE.
Nvl(dwh.dwh_pa_get_si_value_f(Pa_Projects_All_V.Project_Id,Pa_Periods_All_V.Period_Name,-1,Dwh_Pa_Project_Si_Info.Currency_Type,Dwh_Pa_Task_Si_V.Task_Number,'R'),0)
Thanks,
PankajHey Pankaj,
I got solution for your issue...
Under any logical table.. you create a logical column and
Select Existing logical columns as source checkbox
Click on Eclipse button..
Now here you write..
EVALUATE('dwh.dwh_pa_get_si_value_f(%1,%2,%3,%4,%5)' ,Pa_Projects_All_V.Project_Id,Pa_Periods_All_V.Period_Name,-1,Dwh_Pa_Project_Si_Info.Currency_Type,Dwh_Pa_Task_Si_V.Task_Number,'R')
And click ok..
Hope it works..
it worked for me..
Thanks & Regards
Kishore Guggilla -
Or between prompted columns in report filter
Hi,
If I give an 'Or' between two prompts in the report filter, as below:-
Value Date is prompted
OR Trade Date is prompted
... then the condition does not apply on the report.
I am using dashboard prompts
OBI version is 10.1.3.4.1
Is there a way around this?
thanks,
GauravHi,
If I hard code in the report filter and use or between the conditions then it works fine.
The prompted filters are not working with 'Or' in between.
It looks like a bug. Can something be done about it?
Using a presenation variable should work, but it will have some other limitations.
thanks,
Gaurav -
SSRS 2008R2 : Not able to use Previous aggregrate function in matrix columns cell
Hi Expert,
I have used a matrix tablix in my report. It is working fine. But when I am trying to use Previous aggregrate in one matrix column cell I get the below error:
The use of previous aggregrate function ia a tablix cell with in 'Tablix1' is not supported.
Please help me regarding that.
Thanks RanaHi Rana,
In your scenario, you use previous function in the “Data” cell, right? Previous function cannot be used in the overlapping parts of row group and column group. One workaround of this issue is use custom code to get the previous value.
Public Shared previous as Integer
Public Shared current as Integer
Public Shared Function GetCurrent(Item as Integer) as Integer
previous=current
current=Item
return current
End Function
Public Shared Function GetPrevious()
return previous
End Function
Then you can use the expression below in the “Data” cell to get the previous value:
=Code.GetCurrent(fields!Score.Value) & "-Previous-" & iif(Code.GetPrevious()=0,"",Code.GetPrevious())
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
TechNet Community Support -
Previous function is working fine. But Relative value function is not working?
HI Experts,
I have used previous function based on calender year it is working fine. but when i have used Relative function based on calender year. It is not working fine. Here I have attached screen shot. Please find the attachment.
Previous Function.
Relative value Function:OK, I added a NEW password to my account settings and everything is fine. **** computers.
-
Error when using CONVERT_OTF function module
Dear Friends,
In many of our reports we are using the function module CONVERT_OTF to send the output as a mail the users.
But after the latest patch update we have came across a new problem. Mail is getting triggered and we can also see the icon or
the file in mail. But when we are opening the file we are getting the message that "THERE WAS AN ERROR OPENING THIS
DOCUMENT. THE FILE IS DAMAGED AND COULD NOT BE REPAIRED.
Earlier this program has been working fine from last 2 years but after updating the patch in the of August 2009. This problem we are
facing. All our mails are not working.
Thanks
Vamshi
Edited by: Rob Burbank on Sep 7, 2009 3:12 PMDear Clemens,
Thank you for the immediate response. I have checked the program in Debug Mode. When we are passing the data to the CONVERT_OTF the output table of the function module is showing the data in some Unicode format in the tables OTF and LINES.
Out of the FM is in completely special characters and this is after updating the latest patch.
We are using Release 700 Level 19 and Service Package SAPKA70019.
Thanks and Regards
Vamshi Sreerangam
Edited by: vamshi sreerangam on Sep 8, 2009 5:54 AM -
Applying a filter to an existing webi report without requerying
Hi,
I'm trying to apply a filter to a webi report using the Report Engine Java SDK. Here's a snippet of my code:
DataProviders dataProviders = doc.getDataProviders();
DataProvider dataProvider = dataProviders.getItem(0);
Query queryObj = dataProvider.getQuery();
ConditionContainer cc = queryObj.getCondition();
if (cc == null) {
cc = queryObj.createCondition(LogicalOperator.AND);
ConditionObject co = cc.createConditionObject(filterObject);
FilterCondition fc = co.createFilterCondition(Operator.EQUAL);
FilterConditionConstant fcc = fc.createFilterConditionConstant(filterValue);
dataProvider.runQuery();
But my problem with this code is that it needs to query the data provider to refresh the report. And it has to requery the data provider each time I want to apply a different filter value like in the case of report bursting. Is it possible to apply a filter to the webi report without requerying the data provider?
Many thanks to anyone who could help.HI Elijah,
I need a bit of clarification here. Are you seeing the actual query being run against the database each time, or are you referring to having to retrieve the query from the dataprovider each time?
If you are actually seeing the query being run - then that is something that should be investigated, however with regards to just retrieving the query from the dataprovider - yes you do need to do that in order to apply a filter.
Thanks
Shawn
Maybe you are looking for
-
When I want to send an email, I. Get a message saying that the email has been placed in the outbox because the email address that I am sending it to does not allow relaying? This is intermittent and often later the email is sent.
-
Nikon D7100 Not Compatible with Adobe CS6
I recently purchased a new Nikon D7100 DSLR camera and was quite surprised to find out that it is not compatible with my Adobe CS5 Standard Edition Suite software. From the little bit of info I found online, it appears that non-upgradable changes to
-
Restoring nano to mac BUT ...
Hi - I have a problem similar to a poster from 2 days ago. I have a nano that I originally formated to windows because the OS software on my mac was too old to support it. I finally updated my mac OS systema and would now like to use and update my na
-
Dynamic equivalent of the Java language CAST operator
Hello, Here is what I want to do: I have an Object that contain "something" (I don't know at compilation time). And I want to do this call: Object myObject = new String("Hello"); myMethod (myObject); having declared these: public void myMethod (Integ
-
Help, error connection Cisco Identity Services Engine with AD.
Dear all, I have Cisco Indentity Services Engine, that connected to Active Directory. When I test connection detailed, the result is error, said: Test Connection Results This dialog shows the detailed logs for the operation for: idsv0018. Status: FA