Multiple values are selected in a multiselect prompt then we can get indivi
Hi Experts,
Can it be possible in OBIEE that if multiple values are selected in a multiselect prompt then we can get individual graph for each selected values?
For eg if in a multiselect prompt,values such as bangalore,pune,hyderbad etc are selected then the result in a report diosplays 3 graphs one for each state.
Waiting for any work arounds on this.
Regards
Ashish
hi Ashish,
Pull the cities in Section's section of pivot table and construct the graph ,use is prompted filter on the city
It should work
thanks,
Saichand.v
Similar Messages
-
How to Display values in order when Multiple values are selected in the Parameter List
<p>Hi</p><p>I have a report which runs on the parameter(SalesPersonName) selected.<br />Report has a group section where for each SalesPersonName we have different actions(Lead,Prospect,Active and so on) he had performed which is the basis for the group.</p><p>Now if i need multiple Value selection in the parameter,which i am able to acheive but the order in which it gets printed is not the right one.</p><p>I want intially all the actions performed by one sales person printed and then the second one should start.</p><p>Can any one help me in this aspect.</p><p>Thanks in advance</p>
<p>If I understand your report structure correctly - you have one Grouping on Actions. So could you not add another grouping on SalesPersonName above the Actions grouping that you currently have?</p><p>So the new structure would be:</p><p>G1 - SalesPersonName</p><p>G2 - Actions (current grouping you have)</p><p> </p><p>Whether or not you suppress or don't suppress the new grouping is your choice, but it will then force the ordering that you are asking about (assuming I understood) </p>
-
Dynamic sql reurns no data when multiple values are passed.
(Dynamic sql returns no data when multiple values are passed.)
Hi,
While executing the below dynamic sql in the procedure no data is returned when it has multiple input values.
When the input is EMPID := '1'; the procedure works fine and returns data.Any suggestion why the procedure doen't works when input as EMPID := '1'',''2'; is passed as parameter?
=======================================================
create or replace PROCEDURE TEST(EMPID IN VARCHAR2, rc OUT sys_refcursor)
IS
stmt VARCHAR2(9272);
V_EMPID VARCHAR2(100);
BEGIN
V_EMPID :=EMPID;
stmt := 'select * from TEST123 where Empid is NOT NULL';
IF V_EMPID <> '-1' THEN
stmt := stmt || ' and Empid in (:1)';
ELSE
stmt := stmt || ' and -1 = :1';
END IF;
OPEN rc FOR stmt USING V_EMPID;
END Z_TEST;
============================================================
Script for create table
==================================================================
CREATE TABLE TEST123 (
EMPID VARCHAR2(10 BYTE),
DEPT NUMBER(3,0)
===========================================
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('1',20);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
=============================================
Select * from TEST123 where Empid in (1,2,3)
EMPID DEPT
1 20
2 10
3 30
3 30
2 10
===================================================================
Any suggestion why the procedure doen't works when input EMPID := '1'',''2';?
Thank you,The whole scenario is a little strange. When I tried to compile your procedure it couldn't compile, but I added the missing info and was able to get it compiled.
create or replace PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
IS
stmt VARCHAR2 (9272);
V_EMPID VARCHAR2 (100);
BEGIN
V_EMPID := EMPID;
stmt := 'select * from TEST123 where Empid is NOT NULL';
IF V_EMPID = '-1' THEN
stmt := stmt || ' and Empid in (:1)';
ELSE
stmt := stmt || ' and -1 = :1';
END IF;
OPEN rc FOR stmt USING V_EMPID;
END;If you pass in 1 as a parameter, it is going to execute because the statement that it is building is:
select * from TEST123 where Empid is NOT NULL and -1 = 1Although the syntax is valid -1 will never equal 1 so you will never get any data.
If you pass in 1,2 as a parameter then it is basically building the following:
select * from TEST123 where Empid is NOT NULL and -1 = 1,2This will cause an invalid number because it is trying to check where -1 = 1,2
You could always change your code to:
PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
IS
stmt VARCHAR2 (9272);
V_EMPID VARCHAR2 (100);
BEGIN
V_EMPID := EMPID;
stmt := 'select * from TEST123 where Empid is NOT NULL';
stmt := stmt || ' and Empid in (:1)';
OPEN rc FOR stmt USING V_EMPID;
END;and forget the if v_empid = '-1' check. If you pass in a 1 it will work, if you pass in 1,2 is will work, but don't pass them in with any tick marks. -
How can i select multiple values form select list
Hi ,
I have created few items in a page and all items are Lov items and based on these items stacked charts will display. My requirement is I need to select multiple values form LOV's
Eg: In Interactive report goto filter and select an item and expression as IN and select multiple items and i need to select multiple values like this.
Please anybody help me how to get multiple values.
I have one more doubt Can we have a Print preview option in APEX.
I have to see print preview for stacked charts. is it possible?
Regards
Narender BHI ,
Thank you for valuable information and looks good.but Here our client need to select multiple values.... for eg: Open IR report and click on Actions button --->select filter
select any column , operator as IN and from expression select multiple items.
I need to select multiple values in that way so, could you please guide me how can i achieve this.
Regards
Narender B -
I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
Is there any workaround to this error? so that drillthrough can be done even with multiple selection.Hi Vikas,
The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted.
For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
1. Select a single Item.
2. Select all items.
Hope this helps!
Please mark as Answer if this helps! Thanks, Rajasekhar. -
Passing multiple values to select-option low by submit at one go from zpro.
Hi all,
I have a requirement pass descrete multiple values form my z-program to to select-option low on selction screen of standard SAP program using SUBMIT statment at one go.At the same time select-option high will be empty.I will be thankful if anybody can help me in this regard.
Sandeep.Hi Check this link...on submitting programs
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/frameset.htm
here is the code . we are calling the same program....you can call any other program as well.
REPORT demo_program_submit_rep1.
DATA number TYPE i.
PARAMETERS paramet(14) TYPE c.
SELECT-OPTIONS selecto FOR number.
The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
DATA: int TYPE i,
rspar TYPE TABLE OF rsparams,
wa_rspar LIKE LINE OF rspar.
RANGES seltab FOR int.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE sy-lilli.
WHEN 4.
seltab-sign = 'I'. seltab-option = 'BT'.
seltab-low = 1. seltab-high = 5.
APPEND seltab.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH paramet eq 'Selection 1'
WITH selecto IN seltab
WITH selecto ne 3
AND RETURN.
WHEN 5.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
wa_rspar-low = 14. wa_rspar-high = 17.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
wa_rspar-low = 'Selection 2'.
APPEND wa_rspar TO rspar.
wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
wa_rspar-low = 10.
APPEND wa_rspar TO rspar.
SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar
AND RETURN.
ENDCASE. -
Multiple values in selection screen
Hi all,
I have this program with a selection screen. I used the select-options keyword for the vendor(lifnr).
The output is fine if I give a 'from' and a 'to' value but if I select the dynamic selections icon for the vendor in the selction screen and give multiple values, its not working.
Can u pls help?Hi Sushma,
I doubt you are giving EQ in place of IN in Select statement.
Ex : Select * from LFA1 where lifnr IN S_LIFNR.
AND not Select * from LFA1 where lifnr EQ S_LIFNR.
Regards,
Leo -
How to detect how many LOV values user selects on a WEBI Prompt
Hello Gurus,
Is there a way to identify how many LOV Values the user selects on a Webi prompt that allows multiple value selection?
For EG: If I have a webi and there's a prompt called State on the WEBI and the user selects "Utah", "Ohio" and "Texas" from the LOV and runs the query; is there a formula I can use to get the value as 3 (no.of selections)? If that's not possible, is there a way to find out if the user has selected more than 1 value?
Thanks,
RCHello,
From what I know there is no direct way of figuring it out. But here is a little trick.
Create a variable to capture the user response. Lets call it - State Prompt
It should display the values like this: Utah;Ohio;Texas
Next, get the length of the response string by using the length function.
=Length([State Prompt]). It should give you 15 in our above example.
Now, create another variable [let's call it - Replaced State Prompt] where you use Replace function, to replace/remove the ";" from the response string.
=Replace([State Prompt];";";"")
Next, get the new length of the new response string by using the length function.
=Length([Replaced State Prompt]). It should give you 13 as it removed two ";".
Now, do a subtraction and add 1 to get the count.
Overall it should be something like this-
=Length(UserResponse("Enter State")) - Length(Replace(UserResponse("Enter State");";";""))+1
Hope this helps.
Gaurav -
How to tell if multiple files are selected when they are opened in windows
Hello, can someone help me, my question is how to tell if multiple file selections were made when they were opened (right-click->open). Through modifying the registry I already have my Java program start up when a file with specific extension is double-clicked.
The problem is when multiple files are opened at the same time, an instance of java program is created and run for each of the selected files. Ideally I would like it so that only one instance of java program is run, regardless of the number of selections.
When you try it with Microsoft media player or winamp for example, it seems that only one process is created and run (I don't see many processes spawning when I watch it using task manager). Maybe this is more of Windows issue rather than Java programming issue. Any help is appreciated.If anybody wants to know, this can be solved by either 1) using DDE 2) using DropTarget (from Windows) 3) make a light-weight EXE dispatcher (eg. in C), and use file to have IPC between the dispatcher (which gets the filepath for each of the selections) and the java program. There can be other methods of course. Using the second option is the simplest but it requires WinXP and higher. I implemented it using option 3.. the downside of this is there's a warning message pop up when trying to open many (>20?) files at the same time by Windows. However, option 1 'seems' to have the same limitation. Having a java program created each time for each of the selections seems to be too slow, for viable option.
-
Hello Forum Members,
I have a Multi Valued Parameter as text field.
Input field Sale_Month is of the type Nvarchar in the Database and has 2014.01,2014.02,2014.05 etc.
I can multi select the values but when I run the report only values from first check box are retrieved though I have data for all.
Please advise me.
Sqlquery9Go to tablix properties, under Filter tab make sure that the Sale_Month filter expression has "IN" operator. Also make sure that the value expression has =Parameter!Sale_Month.Value
Regards, RSingh -
Hi,
I am trying to create a select box, where if the user chooses
option "all" several variables are passed as a list to be used in a
IN statement in my query. Doesnt seem to be working though, I think
it's something to do with comma seperating the list but I can't
seem to get it right.
Any help much appreciated. Thanks. Code Below
<select name="Faculty">
<option value="BS,CC,EI,HE,HH,ID,RS">All</option>
<option>BS</option>
<option>CC</option>
<option>EI</option>
<option>HE</option>
<option>HH</option>
<option>ID</option>
<option>RS</option>
</select>
and then the query is:
select count([06Student]) as stucount, domicileDesc
from tbl_StudentRecord, tbl_People, LUtbl_Domicile,
LUtbl_FeeStatus, IMPtbl_Programmes
where tbl_StudentRecord.[06PersonNo] = tbl_People.PersonNo
and tbl_People.Domicile = LUtbl_Domicile.DomicileCode
and tbl_StudentRecord.[06FeeStatus] =
LUtbl_FeeStatus.FeeStatus
and tbl_StudentRecord.[06Programme] =
IMPtbl_Programmes.Programme
and Faculty in ('#url.fac#')
and Domicile > '599'
and Domicile < '900'
and [06Programme] <> 'IDEPS'
and (ReturntoHesa = 'Y' or ReturnToHesa is null)
and [06StudentModuleStatusPAT] ='ST'
Group by DomicileDesc
ORDER BY count([06Student]) DESCFaculty in ('#url.fac#')
This is not going to do what you want it to do. First of all
is there a
typo? Here you refer to "url.fac", but in the select snippet
the field
is named "Faculty" These would need to agree.
Even then this will return a result like this:
Faculty in ('BS,CC,EI,HE,HH,ID,RS')
What you need is this:
Faculty in ('BS','CC','EI','HE','HH','ID','RS')
The listQualify() and related functions can help you in this.
But what I usually do is this in the <cfquery ...> tag.
This way you do
not need to maintain a list of all parameters as your data
may change.
<cfif url.faculity NEQ "ALL")
AND Faculty = '#url.faculty#'
</cfif> -
Returning multiple values with SELECT FOR LOOP
Oracle EE 11gR1
PL/SQL
OEL 5.8
===========
Would like to know how to do the following?
for x, y in (select name, street
from employees
where hire_date < sysdate - 100)
loop
In other words, is there a way to handle 2 (or more) values in a SELECT FOR LOOP structure? If not, then how to accomplish the same task.
The above does not work of course. :-)
Appreciate any and all advice.Yes, just have one name in your for loop and that becomes the equivalent of a table name and reference the columns as that name.column name
for t in (select name, street
from employees
where hire_date < sysdate - 100)
loop
dbms_output.put_line('name = '||t.name);
dbms_output.put_line('street = '||t.street);
end loop; -
whenever i try to open a website i get multiple popups from all sides of the screen saying related searches
i have cleared all my cache and made a lot of changes in my pop-up blocker but it didnnt help me
i also updated my browser , re installed but my problem is not resolved
can u please help me out with thisThis happens in Safe Mode?
*[https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
Also:
*[https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware Problems caused by malwares]
*[https://support.mozilla.org/en-US/kb/firefox-repeatedly-opens-empty-tabs-or-windows Firefox repeatedly opens empty tabs or windows after you click on a link] -
Everything else remained-- pictures, notes, even my open web pages. It is probably worth mentioning that I recently got a new computer (MacBook), and I initially set up my iPhone on an old PC. Are my apps salvageable?
I take it you didn't read the warning prior to updating the phone. It said that you need to backup before upgrading. You have two ways. 1) load apps off your old computer. 2) Download apps one at a time. Your apps are still tide to your account and you will not be charged.
-
Selecting Multiples Values from Multiselect Box
Hi
Here is my requirement ,
Multiselect List Box should display Simulator_Type Values
Simulator_Type Values Values to search for in the column simulator type
AC - small signal AC
HB - Carrier HB
SP - Linear Noise SP - L
SP - s parameters SP - s
TR - Transient TR
DC - operational point DC
ET - Envelope Transient ET
SSNA SSNA
[nothing] nilDepending on the values selected in the multiselect values the data has to be dipayed where the value is in the simulator type column
For Eg : AC - small signal is selected in the :p1_simulator_type multiselect box, The data where the word AC is in simulator_type column should display
Examples of data in the simulator_Type column:
SIMULATOR_TYPE
ac, dcOp, Periodic Steady-pss
AC - small signal
AC Small Signal, Operating Point, Periodic Steady
AC - small signal, SSNA
DC - operational point
ET - Envelope Transient
So , here if i select AC - small signal from the multiselect list box , then the data where "AC" is there in simulator_type has to be displayed , in this case the data associated with
ac, dcOp, Periodic Steady-pss
AC - small signal
AC Small Signal, Operating Point, Periodic Steady
AC - small signal, SSNA
has to be displayed...
currently i have the report query below which is working but only when one simulator type is selected ....
select
* from DW_RFA_JOBDATA
where RFA_SUBMIT_TIME >= :P1_START_DATE
and RFA_SUBMIT_TIME < :P1_END_DATE
AND RFA_SIMULATOR_TYPE like '%'||:P1_SIMULATOR_TYPE||'%'Could any body please let me know how do i get data when multiple values are selected...
Please let me know any further explanation is needed for the question
Thank you
Edited by: priyapinky on May 5, 2010 9:26 PM
Edited by: priyapinky on May 5, 2010 9:54 PM
Edited by: priyapinky on May 6, 2010 8:48 AMHello,
It seems to me like you don’t really understand how multi select items work in APEX. This type of items (we are talking about multi-select list, checkbox and the shuttle item) don’t really returned multiple values. They returned a single value that contains multiple segments, each include one valid option. By default, each segment is delimited with a colon (:). In your case it means that if you chose two values from your static LOV, the returned value will look similar to “HB:DC” (or any other combination of options). Now you need to work with this value.
The way your RFA_SIMULATOR_TYPE column build, you can’t really work with the multi-select value, as you’ll never find a match to it, as this is actually an artificial value that only exist as a result of your multi-select.
Regarding the new query you are trying, you wrote yourself that “i am getting the data with all the simulator_type select”, and that is correct. Where in this query you are using your filter (:P1_SIMULATOR_TYPE)? This is not the way to go.
You need to break the compound value returned by your multi-select items, and work individually with each segment. You can do that in two ways. The simple one, as I already suggested, is to add another column that will contain only the code describing the simulator (similar to the returned value of the static LOV). In this case, using the instr() function you are checking if the column value is included in your filter (it’s a revered angle – you are actually checking if the single column value is included in your filter and not if the filter included in your column).
The second option is a bit more complicated and it involves slicing the filter itself and dynamically build your query, using the “SQL Query (PL/SQL function body returning SQL query)” report option. In this case we are going to use the APEX built-in function APEX_UTIL.STRING_TO_TABLE(). The following is a very simple code example that you’ll need to adapt to your scenario:
declare
q varchar2(4000);
filter APEX_APPLICATION_GLOBAL.VC_ARR2;
begin
q := 'select * from emp where ';
filter := apex_util.string_to_table('10:20');
for i in 1..filter.count loop
if i = 1 then
q := q || 'deptno = ' || filter(i);
else
q := q || 'or deptno = ' || filter(i);
end if;
end loop;
return q;
end;In your case the parameter for the string_to_table is your filter item, and you can use LIKE as your comparison operator.
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More
Maybe you are looking for
-
I recently started using an iPad. I up loaded several apps. Evernote, cloudon, Goodreader, Drop Box and lots of others. It crashes when I down load pictures and then try to use them. Converting a jpg to a pdf usually triggers a crash. Is there a "hit
-
Cs5.5 master collection wont install After Effects or Premier
Just upgraded from CS4 to CS5.5 and installation errors on After effects and Premier. I'm running windows 7 64 bit pro service pack 1,Duel x5650 xeons, 24 gigs of memory, 250 gb ssd. Before installing CS5 I uninstalled cs4. After the first installat
-
EOS 70D : Slow shutter speed when LCD screen turned on
Hi ! Need your help. I am beginner & I have new 70D camera. When LCD panel turned off, the shutter speed is quite fast. When I turn on LCD Panel, the shutter speed automatically slows down & sounds annoying. The pictures are same in both cases. Also,
-
Query to grab the sum and the most recent values?
hi, Just wondering if its possible to have a query on the temp table, which fetches school,most_recent(sub1),sum(sub2),sum(sub3) group by school table temp SCHOOL DATE1 SUB1 SUB2 SUB3 ABC 01-AUG-07 1 5 6 ABC 02-
-
my signature, the creative cloud is valid until December 2015, I had to format my mac as I have programs that already paid (photoshop lightroom and) again?