How to filter values using variable presentation if it uses a multiselec
Hi gurus,Could you pls suggest me here.
I have a requirement like my version 10G OBIEE isn't filtering report values when we choose a value any in dash prompt.
I tried to create a variable presentation in the prompt for filtering, but invites under control, he is given a MULTI SELECT.
I need to filter the values today if select us any value from the command prompt, it does not choose any value.
How to filter values using MULTI SELECT Here.Please suggest me here.
Kind regards
SK
Functions applied on the columns must be the two places (in report and guest) and must affect is fast after the function applied in the report.
In your case is prompt value before cast, it seems that it is the reason why it does not work.
Mark correct/good so pls help.
Tags: Business Intelligence
Similar Questions
-
Void string formula during the passage of several values of variable presentation
Dear all,
I have a scenario where I will get one or more presentation variable values, and each value should create a separate chart where each graph should filtered by a single value.
For example: If suppose that my presentation of the values of variable passing as below.
IN ("ASTON MARTIN", "KIA", "PEUGEOT", "DACIA")
Then I should get four chart:
as the first chart report filtered by ASTON MARTIN
as the second chart report filtered by KIA
as the third graphic report filtered by PEUGEOT
as the fourth graphic report filtered by DACIA.
Kindly help me out here.
Thank you
In your non-text expression expression may be only "Dim MBV CSD". "' @{RF1} {Lk Veh Vehiclemake}.
Then
LOCATE(',' || cast("Dim MBV CSD"."@{RF1}{Lk Veh Vehiclemake}"as varchar(1000)) || ',', ',' || '@{L1}{FIAT,FORD}' || ',') >0
PS
But in this column (if is not text) you'll never find values 'FIAT', 'FORD' etc.
Make sure that your model and reports are correct.
-
How to send different value of variable presentation in URL GO?
Hello
I use GO URL to send presentation Variable (d_pv) to filter the other report on column 'day '...
"(a href = http://server/analytics/saw.dll?GO & path=/shared/BI%20Reports/Ki1/KPIs%20Detail%20Priority%203%20Shipped & Action = Navigate & p0 = 1 & p2 & p1 = eq ="Time". Day & p3=@{d_pv}) SHIPPED (/a)'
It works very well. But my goal is to filter the report by using the eve of the value of d_pv (for example. If the value of d_pv is ' 2010-04-27', I need to filter the others using report "(2010-04-26')"
I couldn't find to spend one day back value of presentation using variables go url.
Help, please...
Published by: bob123 on April 28, 2010 10:15I would say use TIMESTAMPADD(SQL_TSI_DAY,...,1) and use spend your variable in this column.
When you spend the day report 28/04/2010 + 1 column target, it will display the 27/04/2010 data.
-
passing multiple values of variable presentation to go the url in dashboard
Hi all
I use go url in dashboard in the area of text using html file mark up. We have a guest area which saves the values in the variable of presentation P_REGION. The link to the dashboard works well when we choose to value as a single region. She passes the parameter. However, if we choose multiple values, it fails. Do we need to modify the code below in support of more than the presentation variable value to pass to the report.
Thank you<a href="http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables.P_REGION}">Drill Report</a>
SushilBefore you go to the link, I would say to understand how the variable takes values.
Try to use the link as ay of the column expression in the criteria to see the full url with multiple values.http://nqrc.cci.edu:7001/analytics/saw.dll?PortalGo&path=%2Fusers%2Faron%2FActionLink%2Fname&Action=Navigate&P0=1&P1=eq&P2=%22Employee%22.%22Region%22&P3=@{variables. P_REGION}
If my assumption is not wrong valiables holds as "one, two."
This will give you some ideas to work on.
If need more help to share the url with multiple values.BTW: I don't think that it works with multiple values, give a try, as said.
So much sense mark :)
-
How to filter by instance variables in a single business process?
Hi, I have 3 process in my project and I need to do a search by an instance variable which belongs to one of them.
Process A
B process - idRegional (my variable)
C process
I tried to BusinessProcess, something like that, but it return all processes, and I'm not even able to create the filter: (I try so many different ways)
I get the error: the variable 'idRegional' does not exist. But it exists, simply in a single process.Fuego.Papi.ProcessService ps = new Fuego.Papi.ProcessService(); ps.connectTo(url : Fuego.Server.directoryURL, user : "tester", password : "tester"); BusinessProcess papi = new BusinessProcess(); papi = ps.getProcess(process : "/ViabilidadeTecnica"); filtro.create(processService: papi.processService); filtro.SearchScope= new Fuego.Papi.SearchScope(ParticipantScope.ALL, StatusScope.INPROCESS_AND_COMPLETED); filtro.addAttributeTo(variable : "idRegional", comparator : IS, value : idRegional); filtro.matchAll = true; instancias = papi.getInstancesByFilter(filter : filtro); ps.disconnectFrom();
Is there a way to do a project variable instead of idRegional?
Thank youYour logic will not work unless idRegional is a project variable.
See this link to find a specific value for an instance variable: the instance filter supports several addAttributeTo for several conditions
Dan
-
After insert trigger. How you assign value to variable?
Was wondering if I could get a little help please... I have no experience in PL\SQL... The underside of the trigger fires when inserting another table and this trigger adds lines to another table... When you try to assign "bdate" one value from another table, I can't compile trigger... The ORA-04084 getting when you try to compile... Can someone tell me what the problem is in the code please?
Thank you
Curtis
CREATE OR REPLACE TRIGGER "HKSM. "' CHILLPK_IAR ' AFTER
INSERT ON 'CHILLPACK' FOR EACH LINE
DECLARE
bdate SAPUPLOAD.mfgdate%TYPE;
BEGIN
IF: New.sku NOT IN ("REPRISE", "EMT") THEN
IF TO_CHAR (: new .adddate, 'HH24:MI:SS'), ' 04:00:00 ' THEN
-adddate = production, last updated date
: New.adddate: =: New.adddate-1;
END IF;
-bdate = mfgdate (date of slaughter of the inventory)
Mfgdate SELECT INTO bdate INVENTORY
WHERE RTRIM (containerkey) = RTRIM(:New.containerkey)
AND RTRIM (sku) = RTRIM(:New.sku);
INSERT INTO SAPUPLOAD)
SKU,
quantity,
WGT,
mfgdate,
PFLAG,
rtype,
containerId,
batchdate)
VALUES)
: New.sku,.
: New.traysproduced,.
: New.weightproduced,.
: New.adddate,.
NULL,
'CREATE ',.
: New.containerkey,.
bdate);
END IF;
END;user3954362 wrote:
Thanks for your reply... So why doesn't this work?Create or replace TRIGGER "HKSM. "' CHILLPK_IAR ' AFTER
INSERT ON 'CHILLPACK' FOR EACH LINE
DECLARE
bdate sapupload.mfgdate%TYPE;
BEGIN
If: New.sku not in ("REPRISE", "EMT") then
If to_char (: new .adddate, 'HH24:MI:SS')< '05:30:00'="">
bdate: =: New.adddate - 1;
On the other
bdate: =: New.adddate;
End If;
Insert into SAPUPLOAD
(sku qty, wgt, mfgdate, pflag, rtype, containerid, batchdate)
Values
(: New.sku,:New.traysproduced,:New.weightproduced,:New.adddate, null, 'CREATE',:New.containerkey, bdate);
End If;
End;Because you are not trying to change a new value that you were with this line in your original post:
:New.adddate := :New.adddate -1;
-
APEX... remove the filter value
I use the list values to filter the data in my report... I want to have a filter value (NULL), or something that should be able to remove all the filters, and view all data...
for example, let's say I have a list of countries, Canada, USA, Mexico... I want to have filter value that should present data in all countries
Thanks in advanceIf you open the edit page and try to look for the "List of values" section, you can find the attributes like 'Null display' and 'return value Null. You must set the 'show Null' to yes and specify the text to display in the display attribute and put A or any other value to the return value. Now, you can reference this value in your statement to decode. Thank you.
Kind regards
Manish -
Variable presentation doesn't work is not in the filter using expr
Hi friends,
I have a quick period with a variable presentation of the v_period used. Inturn, so I applied formula below one of my measure column in the analyses below the means, it does not work when I select the name of period of command prompt. How can I place the presentation variable from the prompt for the filter with expression.
FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " Period_name' IN ('v_period')))
Kind regards
Saro
Hi, Saro,
I think the correct syntax when you use variable presentation would be:
FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " ((IN Period_name' (@{v_period})))
OBIIE does not generate the correct syntax when you use the expression builder
And if v_period can have multiple values, you should use this:
FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " ((Period_name' IN (@{v_period} [' @'])))
I have not tried in my OBIEE because I need to filter a Dimension column, so I have to use CASES instead of FILTER, but this is my reference:
Q & A: OBIEE OBIEE 11 g: presentation Variable initialization in a multiple selection prompt
Concerning
Ana GH
-
How to set default to in the dashboard quickly the value of the variable presentation
Hi all the gurus of BI.
I'm coming out of my problem of the last two days and I'm not able to find the solution.
Here's my problem.
I'll have two dashboard pages in a dashboard. The two pages contains guest of dashboard. Now from the command prompt on the first page that I put a variable presentation and I want to use the value of the variable of this presentation to invite ' s value that is used in my second default dashboard page.
I hope that I can do with the server variable or variable expression, but don't know the right way. I tried a lot with both, but not able to find a solution.
Could help me please?
Kind regardsHey, no points? Was it not the 'correct '?
-
How to store the values of variable level OBIEE presentation in DB
Hi all!
We have a command prompt of dashboard which is set up to store values in variables of presentation (period start and period end dates). Is there a way to store values selected from a database? for further processing?
that is, I need to pass the variable level (report parameters) presentation to complex calculations to a PL/SQL function.
Also my requirement might be solved if I can get access to the selected values of logical column in the tab 'Business Model and mapping' definition in the BI administrator.
that is, I'll be able to define the logical column using VALUEOF (NQ_SESSION. < nom_var >)
Kind regards
Mr.MaverickHello.
1 do SQL PL/function (in the database) which has an input parameters, which number depends on number of guests and in it you'll insert these parameters into a table.
2. your report in column expression answers call this function that will do insert, the code would be like:
EVALUATE ("YOUR_FUNCTION (1%, 2%, 3%, 4%) (' as varchar (20), @{p_1}, @{p_2}, @{p_3}, @{p_4})3. Note that the function returns something and be careful on data types inside EVALUATE it.
4. notes that, in the case where some messages are not selected (all or nothing) you recognize this case as:
-case when LENGTH('@{pv_var}') > 0 then ' @{pv_var}' end else' all '.
or like this:
-case when LENGTH('@{pv_var}') is null then 'all choice"other" @{pv_var}' end; "
Kind regards
Goran
http://108obiee.blogspot.com -
OBI, variable presentation using results
Hello!
I have the text field with long text strings.
I want to get results, using the filter "contains all" by this field
Example:
Values aaaa000 aa000aa bbbaa I have entry to filter "a0" and I want to get results according to:
Values aaaa000 aa000aa If the filter field will be empty, I get the error, but I want to get all the rows in the result.
How can I do?
I did the following:
1. in the analysis I marked new filter, type "CONSTAINS ALL". ": number" used as a variable presentation
2. I did new dashboard prompr, where I did prompt variable, named ": number", type "Variable presentation."
3. I did the new dashboard, where I dragged my dashboard prompr and analysis
Now, when the filter-field 'number' is empty, I get the error (and I agree with OLIVIER, because I did not specify the terms of null value):
And when I write all values in the filter field, everything works
I tried to fix it in the analysis, used 'Convert this SQL filter' and wrote the following sql text:
"presentation_tmp"."WB_NUMBER" LIKE CASE WHEN @{:number} IS NULL THEN "presentation_tmp"."WB_NUMBER" ELSE concat(concat('%',@{:number}),'%') END
But it did not help me
How can I get all the lines, when the filter-field 'number' is empty?
Hello
Not really sure how you get this error when the field is empty (you should only get no result) but if you change your filter in the report to:
WB_NUMBER contains all @{: number}
TO
WB_NUMBER contains all @{: number} {%}
You should get all the values when you do not have any value in the dashboard line. Basically, put '%' in the default value of your filter.
-
How to create a constant variable (or presentation variable) within the application
Hi I have a guest with from_month and to_month (both I declared as a variable presentation)
I need from_month operations to be registered as a so-called presentation from_data and use it for further processing.
I tried the below a
created a faster with column function as "filter using from_month operations" and saved as presentation from_data variable.
but I don't know how to hide the second guest of dashboard.
Help, please.Hello
Try like this. It is a working solution.
in your report, add a field with the formula below. Remember that you must month_id not month_name i.e. a no. must be transmitted. This will give you the value you have selected in your guest in all lines.
C.V. (case when Calendar_Month = @{Month_ID} {201212} then end tot_txn)during your use of variance as
tot_txn - resume (case when Calendar_Month = @{Month_ID} {201201} then end tot_txn) / tot_txncreate a filter like month_id > = @{Month_ID} {201201}
-
Variable presentation defined using action links
Hi guys,.
I use action links and the option to navigate to the content of the BI. I have a pie chart and when the user clicks on a slice, I want to set a variable with the value of the column presentation and to navigate to another page of BI. How can I achieve that?
Kind regards
SlaviIt would be pointless in this case, a variable presentation. Make the columns in dimension is requested in the report of the child, this will make your working condition.
-
Error using variable presentation of Expression SQL
Hi all
I get an error - '... Error to break information... "due to a variable used in a SQL Expression. It probably has something to do with a problem of data type. I have reduced the use of the presentation of the error variable.
I'll put a variable pres_mth_nme_to, presentation, from a prompt of dashboard. The line contains a month name.
I use the variable of presentation as part of a SQL Expression in a filter. Most of the SQL Expression is to use the
presentation in ONE variable and assign a value accordingly. For example:
Column: kind of month value
Operator: between
Value: * 10 *.
SQL expression: * case @{pres_mth_nme_to} {a few default} WHEN "NOV" THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN... END *.
The name of the month is in character. If I was in this hard-coding, I don't get the error. For example:
CASE 'SEP' WHEN 'NOV' THEN '10' WHEN 'DEC '... END
It is something to do with the data type of the command prompt and to be used in the comparison. If I use a CAST, the problem persists.
CASE DROPS (@{pres_mth_nme_to} as char (3)) WHEN 'NOV' THEN... END
If I'm in the responses, the problem does not exist, I guess because of default values. If I'm on the dashboard, there is not, I guess because of the reception of the prompt value.
I don't know what I'm missing. Any suggestions?
Thank you.DJ,
If the formula presented by you is exactly true, I mean that it was not made to present as an example in the forum, you must include the variable presentation between apostrophes.
either your formula should look something like
Case ' @{pres_mth_nme_to} {a few default}' WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN... ENDLet me know if it solved the problem...
-bifacts
http://www.obinotes.comPublished by: bifacts on October 25, 2010 13:50
-
12 c: queryListener custom af:table component - how to get the filter values?
Hello
in a queryListener custom on an element of af: table, I am trying to print the values of the filter fields (for example to do a validation)
public void onQuery(QueryEvent pQueryEvent) { RichTable vRt = (RichTable)pQueryEvent.getComponent(); CollectionModel vModel = (CollectionModel)vRt.getValue(); JUCtrlHierBinding vData = (JUCtrlHierBinding)vModel.getWrappedData(); ConjunctionCriterion vCc = pQueryEvent.getDescriptor().getConjunctionCriterion(); for (Criterion vCriterion: vCc.getCriterionList()) { if (vCriterion instanceof AttributeCriterion) { AttributeCriterion vAttCriterion = (AttributeCriterion)vCriterion; AttributeDescriptor vAttDescriptor = vAttCriterion.getAttribute(); System.out.println("Type: " + vAttDescriptor.getType()); System.out.println("Name: " + vAttDescriptor.getName()); System.out.println("Value: " + vAttCriterion.getValue()); } } JSFUtil.invokeMethodExpression("#{bindings." + vData.getIteratorBinding().getName().replace("Iterator", "Query") + ".processQuery}", Object.class, QueryEvent.class, pQueryEvent); }
However... the value of the filterfield (System.out.println ("Value:" + vAttCriterion.getValue ());) is always null after the seizure of a filter value and pressing on enter the af: table.
The table is the filter properly.
How can I get the values of the filter fields in the queryListener?
Kind regards
Koen Verhulst
Keon, in my blog JDev 12 c: how to reset a filter on an af:table channel 12 c | JDev & amp; ADF Goodies that I use
/**
* method to reset filter attributes on an af:table
* @param actionEvent event which triggers the method
*/
public
void
resetTableFilter(ActionEvent actionEvent) {
FilterableQueryDescriptor queryDescriptor = (FilterableQueryDescriptor) getEmpTable().getFilterModel();
if
(queryDescriptor !=
null
&& queryDescriptor.getFilterConjunctionCriterion() !=
null
) {
ConjunctionCriterion cc = queryDescriptor.getFilterConjunctionCriterion();
List
lc = cc.getCriterionList(); for
(Criterion c : lc) {
if
(c
instanceof
AttributeCriterion) {
AttributeCriterion ac = (AttributeCriterion) c;
ac.setValue(
null
);
}
}
getEmpTable().queueEvent(
new
QueryEvent(getEmpTable(), queryDescriptor));
}
}
to reset the values. You should be able to get the values of the same way.and print the values to set them to null instead.
Timo
Maybe you are looking for
-
Can I pick up imported music and ringtones from and old iTunes account?
-
Satellite L735-103: one key does not work after BIOS update
Hello I got a Sat L735-103, part no: PSK0CE - 00N0OUEP and I download the bios for this pc, toshiba Web site.I have updated bios with no problem, but now a realization thatm a key (the key located in the good of "* f ' and 'z') of the keyboard does n
-
Someone had their security options (slide, face unlock, model, etc.) is 'locked' be the administrator? When I had my Moto X I got just the standard slide to unlock but I remember downloading an app that required me to have a "safety lock" on the devi
-
Default Microsoft on Vista Business SP1 games
I have the Visa Business SP1 software on my laptop.In my view, that the games feature is not enabled by default. I tried to put using start-> Control Panel-> programs-> Turn Windows features On or Off... I tried several times but each time I get an e
-
error system PCI bus/device/function 000 h, then again with the number 0200 h
last night when I went down tmy computer and is gone sleep on that I left it and it usuallty just goes to sleep. Today, I am home from work to try to remove the mode "Eve". It wouldn't even turn it off and turn it back on to notice that my computer s