Query filter vs report filter
Hi,
when running queries in webi, on a universe that is based on a BW BEx query, we often see a problem when trying to at dimensions in to the query filter pane. This often lead to columns switching place and/or report just showing the technical ID, not text. If we do the same filtering in the report filter pane after the query has run, there is no issue.
When running a query on a universe based on a BEx query, my understanding is that a filter on a dimension (blue object), will be applied after the BEx query has delivered it's result to BO, and then BO/Webi should only keep the records fitting the filter. Why would this obscure the report result? Anybody else had issues with this?
The users are used to adding filters to the query, and not adding filters in the report afterwards, and they are expecting this to work...
Regards,
Øystein
Hi,
To apply filters at two levels:
The query definition u2013 this is the data defined on the Query tab, retrieved from the data source, and returned to the report.
The data displayed in the report u2013 this is a subset of the query definition data that you want to display in a specific version of the report
Filters you apply to the query definition are called query filters. You use query filters to reduce the amount of data retrieved from the data source. Query filters decrease the time it takes to run the report and ensure that only the data relevant to the report users is saved.
Filters you apply to the data displayed in the report are called report filters. Once the report is generated, you or other users can apply report filters to restrict the values displayed in the report table or chart. The values hidden by the report filters are still saved with in the microcube. You can modify the report filters to display different values in the report or remove the report filters to display all the values retrieved from the data source.
Tip
Filtering the query minimizes the size of reports, reduces the time it takes to refresh report data, and ensures that the data the documents contain is relevant to users consulting the reports. Individual users can then filter the displayed report values by applying the report filters relevant to their specific business focus.
All the Best,
Madhu...
Similar Messages
-
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. -
VERY STRANGE Interactive Report Filter Error
I have a very interesting problem happening with an interactive report in my APEX application. The report runs just fine and has been in use for about 6 months. Just recently, the users have begun to run into problems when using the filter capability within the report. There is a specific column heading (RH Analyst) that they typically click on and select a specific analyst name (the list contains 10 entries). Most selections from the filter list work fine. However, when one specific name is chosen, they get the dreaded ORA-06502: PL/SQL: numeric or value error: character string buffer too small+* error.
I have been working to narrow the problem down and have found the following:
1. The filter error is related to the content of one specific column (not the one I am filtering on)
2. The column that is causing the error is a CLOB datatype
3. The data in the CLOB column was inserted into the database from a form utilizing an "HTML Editor Standard" type of item
4. The data in the CLOB column was copied and pasted from an email that was being viewed using Outlook 2007
5. If I try to recreate the problem with exactly the same information, but copied and pasted from Outlook 2003, I don't experience the problem.
6. The only people experiencing this problem are people who have upgraded their system from Microsoft Office 2003 to Microsoft Office 2007
7. When I try to load the form with the data that was stored in the database, I get a 404 page not found error. This is the same error that I get if more than 32k of data was saved into the CLOB.
The data pasted into the HTML editor from Outlook 2007 (_this is the data that causes problems_) and saved to the CLOB looks like this when I extract it in SQL Developer
(CLOB) <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="Word.Document" name="ProgId" />
<meta content="Microsoft Word 12" name="Generator" />
<meta content="Microsoft Word 12" name="Originator" />
<link href="file:///C:\DOCUME~1\euw6ay0\LOCALS~1\Temp\msohtmlclip1\01\clip_filelist.xml" rel="File-List" />
<link href="file:///C:\DOCUME~1\euw6ay0\LOCALS~1\Temp\msohtmlclip1\01\clip_themedata.thmx" rel="themeData" />
<link href="file:///C:\DOCUME~1\euw6ay0\LOCALS~1\Temp\msohtmlclip1\01\clip_colorschememapping.xml" rel="colorSchemeMapping" /><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves />
<w:TrackFormatting />
<w:PunctuationKerning />
<w:ValidateAgainstSchemas />
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF />
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables />
<w:SnapToGridInCell />
<w:WrapTextWithPunct />
<w:UseAsianBreakRules />
<w:DontGrowAutofit />
<w:SplitPgBreakAndParaMark />
<w:DontVertAlignCellWithSp />
<w:DontBreakConstrainedForcedTables />
<w:DontVertAlignInTxbx />
<w:Word11KerningPairs />
<w:CachedColBalance />
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val="Cambria Math" />
<m:brkBin m:val="before" />
<m:brkBinSub m:val="--" />
<m:smallFrac m:val="off" />
<m:dispDef />
<m:lMargin m:val="0" />
<m:rMargin m:val="0" />
<m:defJc m:val="centerGroup" />
<m:wrapIndent m:val="1440" />
<m:intLim m:val="subSup" />
<m:naryLim m:val="undOvr" />
</m:mathPr></w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
DefSemiHidden="true" DefQFormat="false" DefPriority="99"
LatentStyleCount="267">
<w:LsdException Locked="false" Priority="0" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Normal" />
<w:LsdException Locked="false" Priority="9" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="heading 1" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" />
<w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" />
<w:LsdException Locked="false" Priority="39" Name="toc 1" />
<w:LsdException Locked="false" Priority="39" Name="toc 2" />
<w:LsdException Locked="false" Priority="39" Name="toc 3" />
<w:LsdException Locked="false" Priority="39" Name="toc 4" />
<w:LsdException Locked="false" Priority="39" Name="toc 5" />
<w:LsdException Locked="false" Priority="39" Name="toc 6" />
<w:LsdException Locked="false" Priority="39" Name="toc 7" />
<w:LsdException Locked="false" Priority="39" Name="toc 8" />
<w:LsdException Locked="false" Priority="39" Name="toc 9" />
<w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" />
<w:LsdException Locked="false" Priority="10" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Title" />
<w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" />
<w:LsdException Locked="false" Priority="11" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Subtitle" />
<w:LsdException Locked="false" Priority="22" SemiHidden="false"
UnhideWhenUsed="false" QFormat="true" Name="Stro..."The data pasted into the HTML editor from Outlook 2003 and saved to the CLOB looks like this when I extract it in SQL Developer
(CLOB) <p style="margin-bottom: 6pt;" class="MsoNormal"><u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">“Implementation and Compliance Update #2”</span></u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';"> addresses a concern that clearinghouses may be in some cases inappropriately charging providers for the use of a standard transaction. </span><o:p></o:p></p>
<ul type="disc">
<li style="" class="MsoNormal"><span style="font-size: 7pt;"> </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">In particular, we cite MN Statutes 62J.536, Subd. 1f, which states that: <em>Group purchasers may not impose any fee on providers for the use of the transactions prescribed in this subdivision. </em>The update explains that “payers (or their agents) may not charge for receiving a standard transaction” and provides additional information. The update is accompanied by a joint cover memo from MDH, the Minnesota Department of Commerce, and the Minnesota Department of Labor and Industry. Note: The Minnesota Department of Health (MDH) is charged with implementing and enforcing Minnesota Statutes, section 62J.536. In addition, the Minnesota Department of Commerce and the Department of Labor and Industry administer additional statutory requirements for electronic claims submission, consistent with MS § 62J.536.</span><span style="font-size: 9pt; font-family: 'Arial','sans-serif';"> <o:p></o:p></span></li>
</ul>
<p style="margin-bottom: 6pt;" class="MsoNormal"><u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">“Implementation and Compliance Update #3”</span></u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';"> provides a reminder of the upcoming Dec. 15, 2009 effective date for rules for the standard, electronic exchange of health care remittance advices. It also clarifies that:</span> <o:p></o:p></p>
<ul type="disc">
<li style="" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Statutory requirements for standard, electronic remittance advices do not include requirements for electronic payment (electronic funds transfer – EFT)</span><span style="font-size: 9pt; font-family: 'Arial','sans-serif';"> <o:p></o:p></span></li>
</ul>
<ul type="disc">
<li style="" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Consistent with MDH’s enforcement policies and plans described in Update #1 (posted 6/5/09):</span><span style="font-size: 9pt; font-family: 'Arial','sans-serif';"> <o:p></o:p></span></li>
</ul>
<p style="margin-bottom: 6pt; margin-left: 1.1in; text-indent: -0.25in;" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">o</span><span style="font-size: 7pt;"> </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Starting Dec. 15, 2009, group purchasers (payers) must be able to transmit – and providers must be able to accept - standard, electronic RAs via computer-computer electronic data interchange (EDI). So long as payers and providers are able to exchange the remittance advice standard transaction electronically, the Department does not take issue with payers making available additional mechanisms for communicating RAs to providers, such as access to portable document format (.pdf) files, or provider electronic mailboxes.</span><span style="font-family: 'Arial','sans-serif';"> </span><o:p></o:p></p>
<ul type="disc">
<li style="" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">The Department’s determinations of whether payers and providers are complying with the regulations will take into account several factors. However, we have determined that it is not realistic to require electronic remittance advices when claims ar..." I am using APEX version 3.2
Any help would be greatly appreciated. For now, my short term solution for them is to copy the information from Outlook 2007, paste it into a Wordpad, then copy it from wordpad and paste it into the HTML editor control. That seems to work fine but it is not a very nice solution for the users!
Thanks,
DaleRoel,
Hey there! Hope you enjoyed your time off ;) Thanks for having a look...
Yes, of course I "could" update the functions, but this is NOT something I want to do. I'm one of those people that subscribes to Coding by Contract and the assertion routines at the beginning and end of my subprograms are an important part of that.
This may be a lack of understanding on my part with regards to the order in which Oracle does it's thing - or a bug in Apex... I'm able to duplicate the problem on apex.oracle.com: dmcghan/test/test.
Log into the demo app with admin/dmcghan. The home page has an interactive report, filter the name and you should get the error. When you look at the query you'll see a filter in the where clause that goes against the apex_collections table. This is populated from the post-authentication procedure. Let me know if you have questions.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur -
SQL in reports filter expression
Hi All,
I want to filter the report using the 'in' operator and specify a SQL as the expression. I want apex to be use the result of the query as the list of values for the 'in' operator. Is this supported?
for example can I specify the filter as 'user_name in (select name from user_name_tab where group_id = 10)'
Thanks
Edited by: vmedi on Jan 3, 2012 2:53 PM
Edited by: vmedi on Jan 3, 2012 2:53 PMHi Micek,
Thanks for your quick reaction.
Yes you are right the ChosenValues will be replaced by presentation-variables in the final dashboard,
I just am testing it with constant values in the Answers module.
The problem seems to be that it is not allowed to use a sub-query in the filter expression.
The Answers web application says there is a syntax problem near <select>, while I expect the SQL to be valid.
I guess not all regular SQL is allowed in filter expressions.
And since the report does not try to fetch data, no log of a generated, real SQL is written to the logfile.
I need some alternative for the subquery, but one that is allowed in the filter expression.
The problem is based on the fact that the user chooses a different value then the one that is filtered on.
The timePeriods represent just one startDate, but I cannot use timePeriod itself to filter on.
Because I need a between value, wich does not make sense for a timePeriod element
such as '01-08' or 'JAN-08'.
Several timePeriod notations are used, so using SubString and || to calculate a numeric value from the timePeriod varchar2 is not a good option.
The error says:
Error getting drill information: SELECT "....
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SELECT>: Syntax error [nQSError: 26012] . (HY000)
Any input is welcome
kind regards -
Htmldb_application array reset based on interactive report filter
Hello
I was searching various forums on this topic and did not find usefull answer. I must be doing something wrong or just do not understand how come that others do not have this problem?? Anyway, here it is.
I have interactive report where first column is checkbox. Using submit process , I perfrom inserts/ deletes in database based on checbox array (htmldb_application). Everything works well untill I do not use filter on one of the columns. Such action results in resizing the report ( so number of rows is re-ordered / changed ). I want to run the same submit process on resized list, but it is not possible, because the array points to different/non-existing rows. I would expect that the array gets "reseted" accrording to the new result list, but it does not??
Example:
I load the page with the report, where I have 10 records. Two of them, row 5 and 7, have in column X value '1'. If I leave the report as is, check checkbox on any line and run submit process, action is succesfull.
Now I change the filter and I will display only rows where column X=1. Report now have 2 rows. I check checkbox on the first one, submit the process, but the arrays refers to row 5 ( the old resultset), which is not present in the report now ??
Can I somehow achieve arrays reset based on the interacitve report filter applied? Or any other solution?
Thanks in advance
LudekLudek
The query for the IR is constructed as below select "LINK", "UNLINK", "INST_CD", "CUSTOMER_CD", "DESCRIPTION", "COUNTRY_CD"
, "Link Status", count(*) over () as apxws_row_cnt
from (
select *
from (
select
htmldb_item.checkbox (1,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_c and bind.bc_id = :P2_BC_ID )C , :P2_BC_ID,'DISABLED','UNCHECKED') ) Link,
htmldb_item.checkbox (2,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ),:P2_BC_ID,'UNCHECKED','DISABLED') ) Unlink,
htmldb_item.display_and_save(3,inst_cd) inst_cd,
htmldb_item.display_and_save(4,customer_cd) customer_cd,
htmldb_item.display_and_save(5,description) description,
htmldb_item.display_and_save(6,country_cd) country_cd, DECODE( (select bind.bc_idfrom BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ) , :P2_BC_ID,'Allready Linked','Available') "Link Status"
from REF_CUSTOMER_UNIQ big ) r ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)As you can see, the 'rownum' is gotten in the inner query. I suspect that when you apply a filter, the filter is applied to the outer query. Hence, the rownums will not be as you expect them to be. Instead of using the 'rownum' as the values for checkbox 1 and checkbox 2, I suggest you use a concatenation of
inst_id and customer_cd. In the after submit process you can then just loop through the f01 and f02 arrays , split the concatenated values back into their inst_id and customer_cd components and perform the Insert or Delete.
Varad
Edited by: varad acharya on Jan 10, 2011 4:49 PM -
Interactive Report Filter Problem
Hello,
I ran into a problem with an interactive report today. When the report first loads, no issue. If a filter is added, an error is returned. The error is actually generated by an assertion routine that raises and exception if a NULL value was passed in. Here's a modified/simplified version of the query:
SELECT id,
name,
dept,
emp.year_of_emp(hire_date) AS years_of_employment
FROM emp_table
WHERE id IN (
SELECT c001
FROM apex_collections
WHERE collection_name = 'EMPS_UNDER_MANAGER'
);Again, when the report first loads, no problem. Then when the manager applies, say a filter on dept, an error is raised from the emp.year_of_emp function because a NULL value was passed in.
I know that all emps with an emp id in the collection have a hire_date so I don't feel as though I should have to add another condition in the where clause to filter those out (although that is the work around at this point). Anyone have any ideas as to what could be causing this?
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecurRoel,
Hey there! Hope you enjoyed your time off ;) Thanks for having a look...
Yes, of course I "could" update the functions, but this is NOT something I want to do. I'm one of those people that subscribes to Coding by Contract and the assertion routines at the beginning and end of my subprograms are an important part of that.
This may be a lack of understanding on my part with regards to the order in which Oracle does it's thing - or a bug in Apex... I'm able to duplicate the problem on apex.oracle.com: dmcghan/test/test.
Log into the demo app with admin/dmcghan. The home page has an interactive report, filter the name and you should get the error. When you look at the query you'll see a filter in the where clause that goes against the apex_collections table. This is populated from the post-authentication procedure. Let me know if you have questions.
Regards,
Dan
http://danielmcghan.us
http://sourceforge.net/projects/tapigen
http://sourceforge.net/projects/plrecur -
Interactive Report Filter Expression
I am a (new) user not a developer.
The Apex developer has presented me with a web page containing an Interactive Report interface.
I seem to be managing just fine, for the most part, except to make a filter with multiple OR statements.
I can easily make multiple AND statements.
Is there some trick or special way to write the filter statement (OR is this just not possible with Interactive Report - excuse the pun)
Please help, the developer is stumped!I don't think it's possible (someone can correct me if I am wrong) in 3.2.x, but certainly possible in version 4.
Taken from the Interactive Report help page:
FilterFocuses the report by adding or modifying the WHERE clause on the query. You can filter on a column or by row.
If you filter by column, select a column (it does not need to be one that displays), select a standard Oracle operator (=, !=, not in, between), and enter an expression to compare against. Expressions are case sensitive. Use % as a wild card (for example, STATE_NAME like A%).
If you filter by row, you can create complex WHERE clauses using column aliases and any Oracle functions or operators (for example, G = 'VA' or G = 'CT', where G is the alias for CUSTOMER_STATE).>
Ta,
Trent -
Hi there
Hope this helps others....solution not perfect but gets results
Only problem - with this, is dealing multipe sessions - on use of temporary tables. Not figured that out.
Aim : Use multiple objects, to filter records.
Solution
Steps
Step 1 - Create - Blank Page
Step 2 - Create - Region 1 - Parameters - HTML Text
Step 3 - Create - Region 2 - Results - SQL Query (PL/SQL ...)(see below details)
Step 4 - Create Objects - Region 1 - Example
P12_PROCESS (multi-select)
Default Value --> -1
List of Values --> Select process_id || '--' || description process, process_id from obe.cis_process
Columns --> 1
Display Null --> Yes
Null return value --> -1
created text field, 3 multi-select items plus 2 select objects (using LOV)
Step 5 - Create Button in Region 1 - P12_GO
Step 6 - Numerous Process for this Page - Had 3 - PL/SQL anon block - On submit - after comp & validations
JestUser selects item(s)..data placed in temp table, used later.
DECLARE
l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
-- convert the colon separated string of values into
-- a PL/SQL array
l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P12_EQUIPMENT);
-- clean up the intersection table first
DELETE FROM cis_details_equipment_session;
FOR i IN 1..l_selected.count
LOOP
INSERT INTO OBE.cis_details_equipment_session(EQUIPMENT_NUMBER)
VALUES (l_selected(i));
END LOOP;
END;
Step 3 - further explained
Source Region
Jest : Body of SQL plus WHERE component.
DECLARE
q VARCHAR2(32767); -- query
w VARCHAR2(4000) ; -- where clause
we VARCHAR2(1) := 'N'; -- identifies if where clause exists
BEGIN
q := 'SELECT DISTINCT A.CIP_NUMBER, A.CIP_NUMBER "CIS NUMBER" ,
A.TITLE,
A.FEEDBACK_TYPE,
A.FORM_NUMBER,
A.PROJECT_NUMBER,
A.DESCRIPTION
from
obe.CIS_DETAILS A,
obe.CIS_DETAILS_equipment_session B,
obe.CIS_DETAILS_process_session C,
obe.CIS_DETAILS_system_session D';
--Example of Wildcard
IF :P12_KEYWORD != '- Type Keyword -'
THEN
IF we = 'Y'
THEN
w := w || ' AND INSTR(A.TITLE,:P12_KEYWORD) <> 0 OR INSTR(A.BACKGROUND_INFORMATION,:P12_KEYWORD) <> 0 OR INSTR(A.REMEDIAL_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.CORRECTIVE_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.DESCRIPTION,:P12_KEYWORD) <> 0';
ELSE
w := ' INSTR(A.TITLE,:P12_KEYWORD) <> 0 OR INSTR(A.BACKGROUND_INFORMATION,:P12_KEYWORD) <> 0 OR INSTR(A.REMEDIAL_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.CORRECTIVE_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.DESCRIPTION,:P12_KEYWORD) <> 0';
we := 'Y';
END IF;
END IF;
--Example of Select Object
IF :P12_PROJECT != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND PROJECT_NUMBER = :P12_PROJECT ';
ELSE
w := ' PROJECT_NUMBER = :P12_PROJECT ';
we := 'Y';
END IF;
END IF;
IF :P12_FORM_TYPE != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND FEEDBACK_TYPE = :P12_FORM_TYPE ';
ELSE
w := ' FEEDBACK_TYPE = :P12_FORM_TYPE ';
we := 'Y';
END IF;
END IF;
IF :P12_SUPPLIER != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND SUPPLIER = :P12_SUPPLIER ';
ELSE
w := ' SUPPLIER = :P12_SUPPLIER ';
we := 'Y';
END IF;
END IF;
--Example of Multi-Select
IF :P12_EQUIPMENT != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND INSTR(A.EQUIPMENT,B.EQUIPMENT_NUMBER) <> 0';
ELSE
w := ' INSTR(A.EQUIPMENT,B.EQUIPMENT_NUMBER) <> 0';
we := 'Y';
END IF;
END IF;
IF :P12_PROCESS != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND INSTR(A.PROCESS,C.PROCESS_NUMBER) <> 0';
ELSE
w := ' INSTR(A.PROCESS,C.PROCESS_NUMBER) <> 0';
we := 'Y';
END IF;
END IF;
IF :P12_SYSTEM != '-1'
THEN
IF we = 'Y'
THEN
w := w || ' AND INSTR(A.SYSTEM,D.SYSTEM_NUMBER) <> 0';
ELSE
w := ' INSTR(A.SYSTEM,D.SYSTEM_NUMBER) <> 0';
we := 'Y';
END IF;
END IF;
IF we = 'Y'
THEN q := q || ' WHERE '|| w;
END IF;
RETURN q;
ENDHi user547704,
A couple thoughts about your posting. If your intention is to publish a how-to you might want to do a couple things. First, let everyone know what your name is by either signing your posting or changing your forum alias, or both. Second, give a brief introduction at the beginning to explain what it is that the how-to addresses. Something more than 'Multi Report Filter' I guess is what I mean.
A couple sentences that explains what 'Multi Report Filter' means to you and what problem it solves can go a long way to making your posting far more valuable. Othwerwise, you're leaving it to the reader to try to deduce your meaning and that might not happen all the time. Especially with folks from all around the world reading this forum and the problems that language differences insert into the equation.
Either way, welcome to the forum!
Earl -
Add Exists filter into Reporting Services MDX
Hi, I have a piece of auto generated MDX which I need to filter. This was a generated by Reporting Services when I added a parameter to a report reading from a cube.
WITH MEMBER [Measures].[ParameterCaption] AS [Dept].[DeptName].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[ParameterValue] AS [Dept].[DeptName].CURRENTMEMBER.UNIQUENAME MEMBER [Measures].[ParameterLevel] AS [Dept].[DeptName].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , [Dept].[DeptName].ALLMEMBERS ON ROWS FROM
( SELECT ( STRTOSET(@Yearly, CONSTRAINED) ) ON COLUMNS FROM [MyCube])
The parameter displays all [Dept].[DeptName] even though many are not in the report. How do I only show DeptName if it is in the report?Hi Dark,
In SQL Server Reporting Services, the parameter will display all the Available Values for the user, and then the users select values from the drop-down list, and then filter the report data based on the selected values.
In your scenario, if you specify multiple available values from this parameter, then it will display all the DeptName on the report parameter pane. I have tested it on my local environment, the query works. Here is the sample query.
with member [Measures].[UniqueName]
AS
[Date].[Calendar].currentmember.uniquename
select [Measures].[UniqueName] on 0,
[Date].[Calendar].[Calendar Semester].members on 1
from(
select
( STRTOSET(@A, CONSTRAINED) )
ON COLUMNS FROM
[Adventure Works]
Reference
http://msdn.microsoft.com/en-IN/library/ms156303.aspx
http://www.oakwoodinsights.com/ssrs-mdx/
Regards,
Charlie Liao
TechNet Community Support -
Report filter and column formula filter help
Using OBIEE 11.1.1.6.8
I have a column formula in an OBIEE Analysis that queries data based on a specific File Date: 31-Oct-2013. the formula looks like this: SUM(CASE WHEN "CLOV - File Date"."File Date" = '31-OCT-2013' AND "Pending Claim - Process Time"."Claim Date" <= TIMESTAMP '2013-01-31 00:00:00' THEN 1 ELSE 0 END)
The issue is I have other columns that need to query data as of the most recent File Date available. For that, I usually use this in the report filter section: SELECT MAX("CLOV - File Date"."File Date") FROM "VETSNET OPERATIONS REPORTS". this will pull the most recent date available.
What formula(s) do I need to use so I can have other columns pull the most recent data while the other column always uses the 31-Oct-2013 date?If you like to port the same logic in Analysis then that might be easy to do.
Not sure how to handle other column ie Claim without looking data, but try with a new metric max(File Date) and set the content level may be Year or as per requirement and use that column in the same expression
let us know updates -
The default value as "None" for the report filter which is Value List type?
Hello,
I want to know is it possible to make the default value as "None" for the report filter which is Value List data type?
For example:The Project Classification Value List value type which have many value like "Supplier Rationalization" "Category Sourcing" "Contract Regegotiation" etc, and the value "Supplier Rationalization" is in the frist positon in the value list. When i use "Project Classification " as a report filter, the value "Supplier Rationalization" displayed as default value. And in the value list box in report filter of Project Classification , there is a value "None" which should be added automatically by system. So i manually filled the default value with "None" in Filter Prompt screen, but it does not work. After i display the report ,the Project Classification filter still use the ""Supplier Rationalization" as the default value.
My current ESO version is 5.1. I tried other ESO version like 5.15, if i manaully give a default value "None" in Filter Prompt screen for filter Project Classification, then the default value is "None". It works well.
Does anybody know if it's possible to do the same thing in ESO 5.1?
Thanks & Regards,
David
Edited by: David Gao on Aug 11, 2010 4:06 AMHi David -
This is possible, but the technique is not too obvious...
To make "None" be the default choice for a query definition filter parameter of type value list type, you need to set the default value of the filter parameter to the following:
<internal id of value list type>:616:NULL
For example, I believe you will see that the internal id of the Project Classification value list type is 51, so the default value of the filter parameter would be:
51:616:NULL
I hope this helps.
Regards,
Rob -
Report -- filter with selection list -- show all values after select page
Hello!
I have the following problem:
- I have a report
- this report can be filtered with a selection-list
- the selection list is based on dynamic LOV and has a null-value
- I added the code of the report the following, to filter the report after choosing a value of the selection list:
... and (instr(type, decode(:P8_FILTER_type, '%null%',type,:P8_FILTER_type)) > 0)
This works very well.
But my problem is: When the user logs out and the next time, he logs in, the selection list shows " --- show all values --- " (my null-display-value) and the report is empty "no values found".
---> I want to show the first time, the page is selected ALL the values of the report. (this is now only possile if I press the button which belongs to the selection list)
I hope, somebody understands my problem.
Thank you so much,
LISAHello Lisa,
The first time it's probably NULL.
So what you can do in your where: (instr(type, decode(NVL(:P8_FILTER_type,'%null%'), '%null%',type,:P8_FILTER_type)) > 0)
Off topic: I also wonder if that where clause can't be simpler? Do you rely need the instr?
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/ -
How to not loose filter in report
In a report I use a filter and this filter can be set with a variable. Now from this report I go to the underneath form, but when I return to the report (after cancel, save, create ertc) I loose this filter.
Is there an effective way to keep this filter?
Thanks, FritsHi, resolved it myself.
In the page item, where I hold the variable. I changed the Source Used to
"Only when current value in session state is Null"
and Source Type to
"Static Assignment (value equals source attribute)".
Now it holds this value.
Thanks for the respons anyway.
Greetz, Frits -
Unable to filter the report by clicking the last column's name
Hi,
I have interactive report page having lots of column. All columns were not fitting in the screen so I added a code in the region--- header and footer section---
<div style="overflow: auto; width: 1220px; height: 700px;">
I got a scroll bar at the bottom. But a new problem arised. When I am trying to filter the report by clicking the column name in the report page , a popup is opening for the first column but the pop up is not opening for the last column. For the middle columns, the popup is opening but not below its name. This pop is for filtering the report based on that columns.
Please give some idea to fix this bug.
Thanks,
Chandra BhanuYou could try to display as many columns as fit your screen, and put the rest of your columns as form fields in a detail view, somewhat like this:
http://apex.oracle.com/pls/apex/f?p=vincentdeelen:report_details_in_iframe_v1
Please tell the steps how to do it.
Thanks,
Chandra Bhanu -
I have a list with almost 10000 items. I have a view that should be returning 8 items. For me, the Farm Admin, I see the full set of expected values. The message "Displaying only the newest results below. To view all results, narrow your query by
adding a filter" shows for other users. This makes no sense -
there ARE filters on this view. I'd rather not increase the throttle limit.
Anthony KellyHi Ajk,
Check that the list is not scoped by an audience; but, I'm afraid that either way admin, (e.g. non Farm admin or site collection admin)
I'd recommend exporting to excel, create two new spreadsheets and then import as custom lists.
Best of luck and cheers,
Stacy Anothersharepointblog.blogspot.com
Maybe you are looking for
-
How do I set up The Lorax Daily Print Activities?
The steps are pretty simple: Open The Lorax Daily Print Activities. The application should open as soon as installation is complete. You can also open the program by clicking your desktop icon, or by clicking Start, then All Programs, then the name o
-
Deployment Descriptor in Oracle 11g
Hi all, in oracle 10g i used to create deployment descriptor property in jedeveloper and set value for it,so that i can change the value in the console at run time. Like wise i am not aware how to do the same in the oracle 11g. pls help me to sort th
-
Hi, Frends while generating the sales order to billing document(not related to delivery),,,it is posting in to FI but not posting in to COPA.Can any body give me the solution. Regads Sap Guru [email protected]
-
Discoverer and Sybase database
Could we connect Discoverer to Sybase database? Thanks Suhail
-
I am trying to understand when I would use forms or canvases.I thought that for each screen on an app you would create a form. Instead I have seen apps that use several canvases for one form, each representing a screen. Please help!