Is it possible to combine 2 different reports in a single Query?

Dear All,
What am I working at?
I produced a Query for Debtors Aged Analysis which mimics the Official SAP B1 8.8 Aging Report.
It ages the outstanding invoices by Posting Date ( RefDate  in JDT1)
I also made another Report which ages outstanding amounts by Document Date simply by replacing all RefDate by TaxDate
They give different answers if Posting Date is different from Document Date, e.g a manual invoice dated 5 Jun 2011 is posted on 2 Jul 2011.
What I want to do?
My idea is to produce a SINGLE QUERY which will generate either Aging depending on settings:
    (a) A Debtors Aging by Posting Date
    (b) A Debtors Aging by Document Date
I declare 2 variables:
(a) @refdt  is [%1] and represents Posting Date (JDT1 RefDate)
(b) @taxdt  is [%2] and represents Document Date (JDT1 TaxDate)
When the Query is run, the foll dialog appears:
Query - Selection Criteria
Posting Date             Equal .......
Document Date            Equal .......
OK   Cancel
We are expected to fill in only 1 date and leave the other blank, and Query will generate the required report .
What is my problem?
Query runs smoothly, but amounts in the Balance column does not get analyzed in the Age brackets: Current / 1 Mth Ago / etc
I think I know where's the problem
I am assuming (wrongly) that if we don't fill one date field, the query returns NULL for that variable. In fact, it appears to return GetDate().
Help
Can anybody help me put the correct commands so that all my balances are correctly analysed in the respective age buckets?
Thanks
Leon Lai
Here's a simplified SQL:
Tables  :
      JDT1   T0  = Journal Entry - Rows
      OCRD T1 = Business Partner
      OCPR T2 = Contact Person
      OJDT  T3  = Journal Entry - Header
      OINV   T4  = A/R Invoices - Header
      ORIN   T5  - A/R Credit Memo - Header
declare @refdt date
declare @taxdt date
set @refdt
/*Select 1 from jdt1 t where t.RefDate*/ = [%1]
set @taxdt
/*Select 1 from jdt1 w where w.TaxDate*/ = [%2]
SELECT
'company1' AS 'Company',
T1.CardCode  AS 'BP Code',
T2.Notes2 AS 'BP Name',
T0.RefDate AS 'Pstg Dt',
T0.TaxDate AS 'Doc Dt',
CASE
         WHEN T0.TransType = 13 THEN 'IN'
         WHEN T0.TransType = 14 THEN 'CN'
         WHEN T0.TransType = 30 THEN 'JE'
         WHEN T0.TransType = 24 THEN 'RC'
         WHEN T0.TransType = 46 THEN 'PS'
         ELSE 'Error ! ! !'
END AS 'Doc Type',
T0.Ref1 'Doc. Number',
ISNULL(T0.FCCurrency, ' - ') AS 'Ccy',
(T0.FCDebit - T0.FCCredit) AS 'Orig. F.Ccy',
(T0.BalFcDeb - T0.BalFcCred) AS 'Bal. F. Ccy',
(T0.Debit - T0.Credit) AS 'Orig. Rs',
(T0.BalDueDeb - T0.BalDueCred) AS 'Bal. Rs',
/* ########################  PROBLEM is here   ################## */
CASE
               WHEN (@refdt is not null) and (@taxdt is null)
               THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
               WHERE DateDiff(mm, T0.RefDate, @refdt) = 0 ) ,0)
               WHEN (@refdt is null) and (@taxdt is not null)
               THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
                WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 0 ) ,0)
END AS 'Current Mth', 
CASE
               WHEN (@refdt is not null) and (@taxdt is null)
               THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
               WHERE DateDiff(mm, T0.RefDate, @refdt) = 1 ) ,0)
               WHEN (@refdt is null) and (@taxdt is not null)
               THEN ISNULL((SELECT T0.BalDueDeb -T0.BalDueCred
                WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1 ) ,0)
END AS '1 Mth Ago'
/* Similarly for other age buckets  */
FROM company1.dbo.JDT1 T0
INNER JOIN company1.dbo.OCRD T1 ON T0.ShortName = T1.CardCode
LEFT OUTER JOIN company1.dbo.OCPR T2 ON T1.CardCode = T2.Cardcode
LEFT OUTER JOIN company1.dbo.OJDT T3 ON T0.TransID = T3.TransID
LEFT OUTER JOIN company1.dbo.OINV  T4 ON T3.TransID = T4.TransID
LEFT OUTER JOIN company1.dbo.ORIN  T5 ON T3.TransID = T5.TransID
WHERE
T1.CardType = 'C' and Balance != 0
and (T0.BalDueDeb - T0.BalDueCred) != 0

HI
I generate the next aged analysis
CREATE PROCEDURE [dbo].[Aged_Analysis] (@end datetime,@Client VarChar (20)) AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets
-- interfering with SELECT statements.
SET NOCOUNT ON;
Declare @SAPUNION Table (SN VarChar(50), TransId Int, ReconSum Decimal(19,2), DebHab VarChar(1),
                                   Linea Int)
insert into @SAPUNION
SELECT X0.ShortName 'SN', X0.TransId 'TransId', SUM(X0.ReconSum)'ReconSum', X0.IsCredit 'DebHab', X0.TransRowId 'Linea'
            FROM ITR1 X0
            INNER JOIN OITR X1 ON X1.ReconNum = X0.ReconNum
            WHERE X1.ReconDate <= @end  AND X1.CancelAbs = ''
            GROUP BY X0.ShortName, X0.TransId, X0.IsCredit, X0.TransRowId
SELECT T0.CardCode, T0.CardName,T0.Address,T0.CreditLine,
T1.TransId , T4.BaseRef , T1.Ref2 , T1.RefDate, T1.DueDate,
CASE
      WHEN T3.DebHab = 'D'  THEN T1.Debit-T1.Credit-T3.ReconSum
      WHEN T3.DebHab = 'C'  THEN T1.Debit-T1.Credit+T3.ReconSum
      ELSE (T1.Debit-T1.Credit)
END 'Balance',
CASE
       when DateDiff(Day,t1.RefDate,GetDate()) <= 30 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
       when DateDiff(Day,t1.RefDate,GetDate()) <= 30 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
       when DateDiff(Day,t1.RefDate,GetDate()) <= 30 then (T1.Debit-T1.Credit) end '0-30 dias',
CASE
       when DateDiff(Day,t1.refdate,GetDate()) between 31 and 45 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) between 31 and 45 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) between 31 and 45 then (T1.Debit-T1.Credit) end '31-45 dias',
CASE
       when DateDiff(Day,t1.refdate,GetDate()) between 46 and 60 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) between 46 and 60 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) between 46 and 60 then (T1.Debit-T1.Credit) end '46-60 dias',
CASE
       when DateDiff(Day,t1.refdate,GetDate()) between 61 and 75 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) between 61 and 75 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) between 61 and 75 then (T1.Debit-T1.Credit) end '61-75 dias',
CASE
       when DateDiff(Day,t1.refdate,GetDate()) BETWEEN 76 AND 89 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) BETWEEN 76 AND 89 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) BETWEEN 76 AND 89 then (T1.Debit-T1.Credit) end '76-89 dias',
CASE
       when DateDiff(Day,t1.refdate,GetDate()) >90 and T3.DebHab = 'D'  then T1.Debit-T1.Credit-T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) >90 and T3.DebHab = 'C'  then T1.Debit-T1.Credit+T3.ReconSum
       when DateDiff(Day,t1.refdate,GetDate()) >90 then (T1.Debit-T1.Credit) end '90-Mas',
CASE T1.TransType
      WHEN '13' THEN (SELECT Y.Comments FROM OINV Y WHERE Y.TransId = T1.TransId)
      WHEN '14' THEN (SELECT Y.Comments FROM ORIN Y WHERE Y.TransId = T1.TransId)
      WHEN '24' THEN (SELECT Y.Comments FROM ORCT Y WHERE Y.TransId = T1.TransId)
      ELSE T1.LineMemo
END 'Comments'
FROM OCRD T0
      INNER JOIN JDT1 T1 ON T1.ShortName = T0.CardCode
      INNER JOIN OACT T2 ON T2.AcctCode = T1.Account
      INNER JOIN OJDT T4 ON T4.TransId = T1.TransId
      LEFT JOIN OINV T5 ON T5.TransId = T4.TransId  and t5.ObjType = t4.TransType     
      LEFT JOIN @SAPUNION T3 ON T3.TransId = T1.TransId AND T3.SN = T1.ShortName AND T3.Linea = T1.Line_ID
WHERE T0.CardType = 'C' /*FOR CLIENTS*/ AND T1.RefDate <= @end AND T2.AcctCode = /*YOUR CLIENT ACCOUNT*/ AND
(CASE
      WHEN T3.DebHab = 'D' THEN (T1.Debit-T1.Credit-T3.ReconSum)
      WHEN T3.DebHab = 'C' THEN (T1.Debit-T1.Credit+T3.ReconSum)
      ELSE (T1.Debit-T1.Credit)
END) != '0'
AND T0.CardCode= @Client
ORDER BY T0.CardCode,T1.TransId,t1.Ref2
END
AND Execute by SAP
DECLARE @VAR INT, @DATE DATETIME, @BP VARCHAR(8)
SET @VAR = (SELECT TOP 1 T.DocEntry FROM [dbo].[OINV] T WHERE T.DocDate <='[%0]' AND T.CardCode='[%1]')
SET @DATE = '[%0]'
SET @BP = '[%1]'
EXECUTE [dbo].[Aged_Analysis]
@end = @DATE,
@Client = @BP
Regards
Floyola
Edited by: Floyola on Jul 22, 2011 10:17 AM

Similar Messages

  • Concatenate different reports in a single PDF file

    Hi,
    I need to concatenate different reports in a single PDF file.
    What I want is to have a single PDF file as a result of a single URL request; but my request runs different reports having a single file as a result.
    In other words, I already have the report A, B and C.
    I'd want to build a new report "D" that invokes A, B and C returning a single PDF that contains A + B + C.
    How can I do it? Is there a SRW function?
    Thanks in advance for your help
    Samuele Gallazzi

    You can concatenate pdf's together using Ghostscript on unix. Just a bit of scripting.

  • Is it possible to create different invoices for a single contract?

    Hi All,
    is it possible to create different invoices for a single contract?
    My customer is asking an invoice per service line.
    Thank you for getting back to me on this.
    Kind regards
    KK

    Can somebody please advice?

  • Different selection in a single query according to an ID

    Hi
    I'm looking for a way to perform different selections in a single query according to a specific value:
    Here is the first selection:
      select g.*,gf.*,gs.*         
      FROM graphs g
      LEFT JOIN graph_frames gf on g.graph_id = gf.graph_id
      LEFT JOIN graph_sets gs on gf.frame_id = gs.frame_id
      WHERE g.graph_id = :IDHere is the second selection:
      SELECT gg.graph_id, gg.graph_name
      FROM generic_graphs gg
      INNER JOIN generic_graph_frames ggf on gg.graph_id = ggf.graph_id
      INNER JOIN generic_graph_sets ggs on ggf.frame_id = ggs.frame_id
      WHERE gg.graph_id = :IDNow, the ID cannot be in both the tables and I want to perform that in a single query, UNION cannot be applied since the tables are different.
    Any ideas?
    Edited by: BluShadow on 14-Sep-2011 09:09
    added {noformat}{noformat} tags.  Please read {message:id=9360002} and learn to do this yourself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Example of consolidating the columns...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select &id as id from dual)
      2  select e.empno, e.ename, e.job, e.mgr, d.deptno, d.dname, d.loc
      3  from   (select * from emp cross join t where empno = t.id) e
      4         full outer join
      5         (select * from dept cross join t where deptno = t.id) d
      6*        on (1=1)
    SQL> /
    Enter value for id: 7521
    old   1: with t as (select &id as id from dual)
    new   1: with t as (select 7521 as id from dual)
         EMPNO ENAME      JOB              MGR     DEPTNO DNAME          LOC
          7521 WARD       SALESMAN        7698
    SQL> /
    Enter value for id: 10
    old   1: with t as (select &id as id from dual)
    new   1: with t as (select 10 as id from dual)
         EMPNO ENAME      JOB              MGR     DEPTNO DNAME          LOC
                                                       10 ACCOUNTING     NEW YORK
    SQL>Though, this would be considered poor design because you are trying to query two disperate things, so they should be treated differently. i.e. in my example, I should already know if I'm querying an employee or a department beforehand.

  • CE -possible to combine different multiple enterprise services? and expose

    can some one please let me know if there is any possibility to combine multple services into one and expose as a new  service in CE 7.1/7.2?

    You have multiple options:
    1. Create a WSDL which has input similar to input of WS1 (only Region as input) and an output similar to output of WS3.
    Create Proxy Service based on this WSDL. Then call all the thee business services one after the other and doing transformations/assigns as needed after each call. Finally map the result of BS3 to the similar output of your new WSDL on which the Proxy service is based.
    2. Create an Any XML type of web service. Create a schema which has two elements, one for input and one for output. Input containing only Region and output containing all the details. All consumers need to send request according to input defined in schema and expect output defined in schema. Its similar to creating the WSDL but can be used in case your consumer do not want to call a Web Service but want to call an XML API over HTTP. Rest will be same as option 1.
    Split join is needed to make calls in parallel, it wont be usable in your use case unless you expect a list og regions in the same request for each of which you need to gather same information by calling three services.

  • Query Design Strategies - servicing multiple reports from a single query

    I was wondering if anyone knew of any good web resrouces (articles and such) to assist with Query Design Strategies. What I am specifically looking to do is replace multiple reports from the previous system with just views of a single query. So I was looking at grouping the existing reports that we are replacing into queries and creating views for each report.
    The catch is that we will only be utilizing web reporting for report distribution, so we need to:
    1. Use views as DataProviders to web templates
    2. Broadcast views to users as links where they can see that particular view
    Is this possible and does anyone have some info on how to do this?

    Lets say that 10 broadcasted reports all could use the same query but each in a different navigational state.
    1. Can you navigate the query and save as a view and then set up a brodacast rule for that view?
    2. Can a DataProvider in a web template be a view?
    3. Can the BI Launcher iView take a view name in place of a query?
    <prt_protcl>://<prt_server>/<bi_launcher>?TEMPLATE=TEST1&QUERY=TEST2

  • Display Multiple reports in a single query view

    Hi Team,
    I have 3 similar reports for MTD, QTD & YTD.
    While displaying the report in the portal..  I want to display the reports in a single view wherein the MTD report will be a default report for the input selections. whereas the QTD & YTD will be available as dropdown options in the same query view and the wll be executed for the same input selections.
    Please advice how to design the view.
    Regards
    Sneha

    Hi All,
    I have created a Web Template for my requirement.
    Now while adding the template to my Transport request, I am getting the following error message:
    Object 'BTMP::0ANALYSIS_PATTERN_EXPORT' refers to the invalid object 'QU::'
    Object 'BTMP::0ANALYSIS_PATTERN_INFO' refers to the invalid object 'QU::'
    PLEASE ADVICE...
    Regards
    Sneha
    Edited by: Sneha Santhanakrishnan on Aug 8, 2011 12:18 PM

  • Possible to exclude interactive report column from single row display?

    hi -- I have an interactive report that I've added a column to (in addition to the table columns that are selected).
    The added column is a link to a form for editing a single row. This column/link is in addition to the default link
    that goes to a single row view. So, a row of the report has 1) the single row view link, 2) the Edit link,
    3) the columns in the table.
    The edit link column is named "Edit" (so Edit appears above the "pencil" link icon). Problem is that when the
    user goes to the single row view, the Edit column is displayed. (I've set the label in the view to a blank space,
    and the value is null (displayed as "-" in the single row view)... but it's generally ugly, and adds that nonsensical
    line to the single row view.
    Is there any way to never display that column in the single row view, but always display it in the report?
    I've considered putting the edit link on the first column of the table... but I don't like that the link will move
    if the user changes the column order. It seems it should always be at the left of the row, like the single row view
    link.
    Thanks,
    Carol

    Please disregard this thread. I see a flaw in the design of what I was attempting to do! Creating the link for Editing as a column means the user could inadvertently not display it, or move it, or... any number of problematic scenarios.
    Thanks,
    Carol

  • Is it possible to generate multiple reports output in single click

    Hi All,
              I am using OBIP 10.1.3.4.1
              I am having 5 reports in a folder. I want to generate all the 5 reports output in a single.
              Is there any possibilities to do it.
    Regards
    Balaji

    Hello Balaji,
    You can schedule the reports at the same time and send the output on the e-mail.
    You cannot use Interactive View for viewing 5 outputs on the same time.
    Regards,
    Liviu

  • Is it possible to run 2 different reports SEPARATELY from a single query?

    Dear All,
    The title to my previous thread seems to be inaccurate and misleading.
    To encourage people to read it, I am giving it a more appropriate Title.
    Please do not reply on this thread, but refer to the original one.
    Thanks
    Leon Lai
    Here's the link:
    Is it possible to combine 2 different reports in a single Query?

    Dear All,
    The title to my previous thread seems to be inaccurate and misleading.
    To encourage people to read it, I am giving it a more appropriate Title.
    Please do not reply on this thread, but refer to the original one.
    Thanks
    Leon Lai
    Here's the link:
    Is it possible to combine 2 different reports in a single Query?

  • Is it possible to call different queries in a report whn called from a form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    hello,
    not sure i understand what you are trying to achive. you can change the SQL statement at runtime by using e.g. lexicals in the SQL statement.
    w.r.t. changing the browser title, check the report level properties that define the pre- and post HTML code that is generated into the output.
    regards,
    philipp

  • Printing Multiple Reports in a Single Request Set to Different Printers

    We are running on 11.5.10 and have three reports in a single request set.
    Two of the reports are standard laserjet compatible reports and we would like these sent to whatever printer is specificed in the request set when it is executed. The third report is a shipping label report and we require that this report always print to a specific (tractor feed) printer while using a partiuclar style we have defined for this printer.
    When we set the label report in its concurrent defininition screen to print only at the label printer and the request set to print to a nearby laserjet the request fails on the first job (one that should be sent to the laserjet) with an error indicating that the style defined for the label printer (ie. "RAW") does not exist on the laserjet printer (which it does not, but it does not need to be).
    Is it even possible to have two reports in a single request set print to different printers?
    Thanks,
    Scott

    We never bounce the concurrent manager process when we update the concurrent program define. There has never been a need to do so. But, regardless, it bounces twice a week anyway and it has had no effect.
    I do not think this is possible without using a 3rd party/custom solution (ex. Optio).
    The requirement is pretty simple really: We have a report that MUST ABSOLUTLEY ALWAYS_ print only to a single, particular printer. And, if it is in a request set that contains other reports and it is defined to print to a different printer they all should go to the "correct" printers.
    If anyone has a method to do this please post!
    Scott

  • How to combine two reports in obiee 10g(not union)

    Hi Everyone
    I have got a requirement where client is asking to combine two report to one
    Report A has columns
    "Region", "category" ,"in house " ,"sales" which can be shown by applying filters for current running year
    Report B
    Region,Category, Week5,week6, week7,week8 in this showing sales in individual week by using pivot view and limiting to four weeks
    with a week filter
    Now client req is to combine both reports into single one
    region, category,inhouse,sales,week5,week6,week7,week8 here the issue is inhouse and sales data has show yearly data and week 5,week6,week7,week8 has to show weekly data .And weeks columns has to get updated automatically .
    I am having a confusion in this will it possible to combine both reports, if possible pls help out how to do it
    Regards
    Sandeep
    Edited by: Sandeep on Jul 31, 2011 9:20 AM
    Edited by: Sandeep on Aug 1, 2011 1:43 AM

    First of all, proof read your post. Generally, grammatical and punctuation errors can be deciphered, but where words are critical to presenting your issue clearly, you must type those sentences correctly. Otherwise, it can be confusing and turn off someone who may want to help.
    "...which can be shown without and filters and want data for current year." What does this mean?
    "...And weeks columns have to update its week no based on that week." What does this mean?
    In an attempt to answer you question, do this:
    1) Base your query filters on the "current running year." This will satisfy the requirements for displaying data from the first report.
    2) Now add 4 "sales" columns (i.e., same column, but 4 instances of it). In each of these columns, click on the fx button, click on Filters, go to your Time dimension and select the appropriate week, and then click "OK." Now, each of these columns will hold the measure value for the particular week while the "sales" column will have the "running total" for the whole time period.
    Once you get the above to work, you can work on automating this by substituting a function in place of the hard-coded week number values.

  • Is it possible to call diff  report queries when called from form

    hello all
    I want to know if it is possible to call different report queries when called from oracle 9i form .
    i tried to use he
    SET_REPORT_OBJECT_PROPERTY(REPORT_QUERY = 'q_diff' )
    option and actualy called the report name
    but it dint seem to work !!!
    also is it possible to chng the title of the browser at runtime

    Sandeep,
    this property is used with passing Record Groups as data parameters from Forms.
    Passing the query name indicates that the values contained in the record group substitutes the result of the named query. This may work in client/server Reports, but it definitively doesn't work on teh Web because you can't pass a Record Group as a data parameter in this environment.
    Te problem with changing a Reports query is that you must meet the same number of columns and column types as they exist in the Report. I didn't spend much time with XML based runtime customization in Reports. I think that you can change the Reports query through this feature. In Forms you would create the XML file using text_io and the merge it with an existing Reports. I never did this before. So it could be that all I am saying does not work in the end. Before following this idea, you may better ask in teh Reports forum on OTN if it is possible to use the runtime customization feature to modify the Reports query.
    Fran

  • Creating multiple tab reports using the same query in Web intelligence

    Hi All,
    I have created a Universe on a BW Query which has fields as below
    AGE  Depaatment  Gender  Grade
    25       FIN                M            A
    27       LES               F            A+
    60       SWS            M             A++
    Based on this data i have created a WEbi report which shows all of these data under one tab.
    Now i create a new report tab in the same Webi Document by right cliicking the existing report and going to inset report and saving it.
    Similarly i create two more new report tabs.
    in each of these tabs i want to show data only for the concened departments.ie =1st report contains all the departments.
    2nd report contains only finance data, third contains only Les data  and fourth only SWs Data.
    Is it possible to create this report using the same query?
    Regards,
    Raj.

    You should use report filters, not query filters.
    A query filter will affect the entire document. Every report tab that pulls data from that query will be impacted. If you start with a single report, by default it shows the data from the query. If you duplicate that report tab, then it's still attached to the first query. There are various ways to create report filters (input controls, quick filter, invoking the filter area from the toolbar) and a report filter impacts only blocks on that report tab. You can even create block filters by clicking on the block first, then creating your filter.
    This is a fairly confusing bit for folks that are new to Web Intelligence.

Maybe you are looking for