Two BI Reports in one WEBI Report ?

Hi Guys
i have 2 BI sales reports in BEX Query Designer. One shows the Summary of Sales in a month and the Other shows the Details of the Sales. The USers want to see both the Reports in WEBI on one page as one report. they want the summary report to show on the top part of the page and the Detail part on the bottom of the same page.
is this possible ?
if so what will happen to the two selection menus for each report in WEBI. both BI reports have a selection menu. will they show up as one selections menu in the WEBI report?

if you have the same text for the prompts into the selection lists for your Bex queries, i think Webi will merge them into one promots, im not sure, but i think it will be merged
but make sure that they have the same prompt text
good luck

Similar Messages

  • One Webi Report with multiple Cascade Prompts

    HI
             I have a requirement to create Cascading prompts on WebI reports. I have two questions.
    1) Can one Webi report have two or more sets of Cascading prompts.
    2) The universe is used by several groups of business useres. But only one group needs to have a Cascade prompts. Therefore, if i create Cascading prompts on Universe what is the impact to other business users who dont want the prompts as cascading prompts.
    Please provide me this information.
    Thanks in advance.

    Hi
              Thanks for the repoly. Can you please provide me more information.
    I understand that I need to do following steps.
    1. copy existing universe as universe II.
    2. link Universe II to Universe 1.
    3. Create cascade prompts on Universe II.
    4. Provide access to Business group with the requirement of cascade prompts to Universe II and rest of the groups to Universe I.
    Please let me know if my understanding is right.

  • 2 BI Reports in one Crystal Report

    Hi Guys
    Can i have a crystal report that shows result of 2 BI Queries.. side by side or maybe one on top and other at bottom. can the users refresh both reports at the same time ?
    If Crystal reports cant do this what about WEBI ?
    thanks

    You can take advantage of 'sub report' functions in CR. Return one of the query in main report and another one in subreport or you can create two sub reports under one main report.
    In WebI, you can create many reports with different queries when you design the report, just right click the first report at the bottom of the design panel, each report displayed as a tab.
    Thx, Hao

  • Different display on client report builder and web reports

    Hi all, I have build a report in report 6i version Report Builder 6.0.8.13.1.And I set the page to 8.5*11 ,and it runs well in the client ,but when I put it on the UNIX SERVER,and run it from web URL,It displayed different from the client report builder.The web report is "smaller" than the client report ,but the font size is as same as the client .
    My HPUX is 11x,and display the Chinese report .
    Any body know why ?give me some advice ,thank u very much.

    Hi
    If you had built the report definition on Windows and then moved this to Unix server, you may find different fonts in use. This is becuase your Unix setup does not have the same fonts install. At design time, You need to use fonts which are available on Unix also. The same fonts shaould also be installed for printer in Unix i.e. the AFM/PFM font files should be kept under $ORACLE_HOME/guicommonX/tkXX/admin/AFM or PFM directory. This would give you the same output and would lessen the porting affect.
    Thanks
    Rohit

  • Multiple Reports inside one Single Report

    Post Author: maximus85
    CA Forum: Crystal Reports
    Hi....I'm having this problem of having multiple reports inside one single report. Basically what i wanted to built is a Dashboard that contains 4 main subjects:i)Sales   -    Contains graph that can be drill down for further detailsii)Internal Process   -  Contains tables that can be drill downiii)Profit/Lossiv)HRAs far as i know, since all four are of different fact table data, they cannot be all thrown inside one single report to be built on. So i came out with using subreports instead for each components and then finally putting them all together as subreport inside the main report(Dashboard).However, i just realized that by doing that, whenever i clicked on the reports that i wanted to drill down with, it will prompt that particular report that i clicked into a new page, and then from there only i can perform drill down.Is there anyway to enable me to straight away drill down the Sales and Internal Process reports from the main reports(Dashboard) instead of having to click twice as that will be unnecessary right?Or mayb if there's another better ways to do what I have to do? Please do advise and suggest......Thanks alot.......

    hi chack,
    doesnt matter or preferrably both, as long as i can export all the reports in 1 page into 1 excel, or 1 pdf.

  • Generatation of 4 PDF Reports from One Oracle reports 10 G

    Hi All,
    i am generating 4 PDF reports from one Oracle reports in 10 G.
    i used RUN_REPORT_OBJECT built in 4 times with some different parameter list at a single time.
    some time it generates but some time it generate 2 or 3 out of 4.
    Can you anyone help me on this issue.
    Regards,
    Abhishek
    Code that i used for generation of report:
    on key-F0:
    DECLARE
         PL_ID PARAMLIST;
         PL_NAME VARCHAR2(10) := 'REP';
         USRNM VARCHAR2(50);
         pl_id2 paramlist;
         pl_name2 varchar2(10):= 'REP';
         usrnm2 varchar2(50);
         pl_id3 paramlist;
         pl_name3 varchar2(10):= 'REP';
         usrnm3 varchar2(50);
         pl_id4 paramlist;
         pl_name4 varchar2(10):= 'REP';
         usrnm4 varchar2(50);
    BEGIN
                        USRNM := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID := GET_PARAMETER_LIST(PL_NAME);
                        IF NOT ID_NULL(PL_ID) THEN
                             DESTROY_PARAMETER_LIST(PL_ID);
                        END IF;
                        PL_ID := CREATE_PARAMETER_LIST(PL_NAME);
                        IF ID_NULL(PL_ID) THEN
                                  MESSAGE('Error Creating Parameter List ');
                        END IF;
                        ADD_PARAMETER(PL_ID, 'P_PRNT_C_FAM_ID', TEXT_PARAMETER, :PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID, 'P_NOTICE_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID, 'P_REDET_DATE', TEXT_PARAMETER, TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID, 'USR_NM', TEXT_PARAMETER, USRNM);
                             ADD_PARAMETER(PL_ID, 'SCHEDULE', TEXT_PARAMETER, :RUN_TIME);
                   ADD_PARAMETER(PL_ID,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                   ADD_PARAMETER(PL_ID, 'P_ENG_SP', TEXT_PARAMETER,'N');
                   REDET_REPORT('506',PL_ID,'CT506_Parent_FamId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                   USRNM2 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID2 := GET_PARAMETER_LIST(PL_NAME2);
                        IF NOT ID_NULL(PL_ID2) THEN
                             DESTROY_PARAMETER_LIST(PL_ID2);
                        END IF;
                        PL_ID2 := CREATE_PARAMETER_LIST(PL_NAME2);
                        IF ID_NULL(PL_ID2) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID2,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID2,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID2,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID2,'USR_NM',TEXT_PARAMETER,USRNM2);
                        ADD_PARAMETER(PL_ID2,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                   ADD_PARAMETER(PL_ID2,'P_PRNT_PROV',TEXT_PARAMETER,'PRNT');
                        ADD_PARAMETER(PL_ID2,'P_ENG_SP',TEXT_PARAMETER,'Y');
                        REDET_REPORT('506',PL_ID2,'CT506_Parent_FamId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                   USRNM3 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID3 := GET_PARAMETER_LIST(PL_NAME3);
                        IF NOT ID_NULL(PL_ID3) THEN
                             DESTROY_PARAMETER_LIST(PL_ID3);
                        END IF;
                        PL_ID3 := CREATE_PARAMETER_LIST(PL_NAME3);
                        IF ID_NULL(PL_ID3) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID3,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID3,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID3,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID3,'USR_NM',TEXT_PARAMETER,USRNM3);
                        ADD_PARAMETER(PL_ID3,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                        ADD_PARAMETER(PL_ID3,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                        ADD_PARAMETER(PL_ID3,'P_ENG_SP',TEXT_PARAMETER,'N');
                        REDET_REPORT('506',PL_ID3,'CT506_Prov_ProvId_Eng'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                        USRNM4 := GET_APPLICATION_PROPERTY(USERNAME);
    PL_ID4 := GET_PARAMETER_LIST(PL_NAME4);
                        IF NOT ID_NULL(PL_ID4) THEN
                             DESTROY_PARAMETER_LIST(PL_ID4);
                        END IF;
                        PL_ID4 := CREATE_PARAMETER_LIST(PL_NAME4);
                        IF ID_NULL(PL_ID4) THEN
                                  MESSAGE('Error Creating Parameter List');
                        END IF;
                        ADD_PARAMETER(PL_ID4,'P_PRNT_C_FAM_ID',TEXT_PARAMETER,:PRNT_C_FAM_ID);
                        ADD_PARAMETER(PL_ID4,'P_NOTICE_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.NOTICE_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID4,'P_REDET_DATE',TEXT_PARAMETER,TO_CHAR(:FRONT_END.REDET_DATE,'MM/DD/RRRR'));
                        ADD_PARAMETER(PL_ID4,'USR_NM',TEXT_PARAMETER,USRNM4);
                        ADD_PARAMETER(PL_ID4,'SCHEDULE',TEXT_PARAMETER,:RUN_TIME);
                        ADD_PARAMETER(PL_ID4,'P_PRNT_PROV',TEXT_PARAMETER,'PROV');
                        ADD_PARAMETER(PL_ID4,'P_ENG_SP',TEXT_PARAMETER,'Y');
                        REDET_REPORT('506',PL_ID4,'CT506_Prov_ProvId_Sp'||To_Char(sysdate,'MMDDRRRR-HHMISS'));
                        Message('Notice Submitted For Printing');
                   EXIT_FORM;
    END;
    Program unit:
    PROCEDURE REDET_REPORT(rep_name in Varchar2,plist in ParamList,rep_pdf_name in Varchar2)IS
              filecode varchar(2);
              Repnm varchar(30);
              report_id REPORT_OBJECT;
              report_id_hear REPORT_OBJECT;
              report_prop VARCHAR2(20);
              v_rep VARCHAR2(100);
              rep_status VARCHAR2(200);
              bat_loc varchar2(200);
              time_slot varchar2(100);
              rep_folder_name varchar2(100):='Redet Notice for Packets Sent\';
    BEGIN
                   Filecode := init.GetFileNmCode;
    if filecode <> 'FL' then
    if upper(substr(rep_name,1,2)) ='CC' then
    RepNm := filecode||substr(rep_name,3);
    else
         if rep_name != 'viewerr' then
    RepNm := filecode||rep_name;
         else
              RepNm := rep_name;
         end if;
    end if;
    end if;
              Begin
                        begin
                        report_id := find_report_object(RepNm);
                        if error_code = '41219' then
                        Message('Unable to execute : '|| RepNm);
                             Raise FORM_TRIGGER_FAILURE;
                        end if;
                   end;
                        set_report_object_property(report_id, REPORT_FILENAME, RepNm);
                        set_report_object_property(report_id, REPORT_SERVER, init.Appl_Repserver);
                        SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
                        SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE,SYNCHRONOUS);
                        set_report_object_property(report_id, REPORT_DESFORMAT,'PDF');
              select rprm_param_val||rep_folder_name||rep_pdf_name||'.pdf' into bat_loc from rprm where rprm_param_name = 'BAT_LOC';
              SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(REPORT_ID,REPORT_DESNAME,'"'||bat_loc||'"');
              begin
              v_rep := RUN_REPORT_OBJECT(report_id,plist);
              exception when others then
                   Message('Error While executing running reports ::'||error_code);
              end;
         end;
    END;

    Abhishek,
    Please post your question in the Reports forum. This forum is for Forms related questions.
    Craig...

  • Isolating WebIntelligence ad hoc reports to specific Webi Report Processing Server

    Post Author: Lucia Chan
    CA Forum: WebIntelligence Reporting
    Has anyone successfully isolated WebIntelligence ad hoc reports to be processed by specific Webi Report Processing Server?  We need to enforce governance on the database side.  We can restrict scheduling for Webi reports to specific Webi Report Processing Server, but not for ad hoc reports.  Otherwise is there a way to do connection override for scheduled Webi reports?

    New version that's comming up SBO Bi4.0 will have bouilt in monitoring that will allow what you requesting.
    In the current product line - this is not possible, unless you just monitor WIReportServer.exe at OS level and alert when it's memory or CPU usage goest too high... (if memory reaches close to and above 1.7gb - you're going into troubles.)
    There are various fixes and improvements to Webi processing stability in recent fix and service packs, so if you're having webi instability - you should review latest FP fix issues list (in SMP to right of FP download there is an Info link - it leads to fixed issues docs).
    If you do not see your issue listed - open incident with support - let them investigate.
    Webi crashing when merging/unmerging dimentions sounds like a bug...

  • Two Bex Queries in one web template - drill-down should affect both queries

    Hi,
    I would like to have two Bex Queries in one web template with the same selection screen and free characteristics. When drilling-down on characteristics I want both queries to break down the figures. I cannot get the last part to work. We are using version 7.0.
    Any ideas how to make this work?
    BR,
    Tobias

    Hi,
    Refer these links it may be usefulin you case.
    WAD Pdf
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/301db65c-f221-2c10-a9a1-f2236e3cea2c

  • How to combine the same variables from 2 queries in one webi report

    HI ALL,
    I created two BW queries/universe and put them into one web intelligence report. Both queries have the same mandatory variable. I combined the relevant dimensions but can't find how to combine the two variables, which resulted in pop-up for 2 variables.
    Any idea?

    Hey Dick Zheng,
    Just to close it,
    Instead of working on existing reports.
    Create new report(s) on top of these changed Universes(2).
    1. New WebI report on top of Univ1 (With Prompt)
    2. New WebI report on top of Univ2 (Without Prompt)
    If both are working as expected. Do follow below:
    1. Open any Report (just created in above steps)
    2. Edit Query
    3. Add Query
    4. Select another Universe
    5. Drag few objects
    6. Run Queries
    Now see it is working as expected or not.??
    Still any issues post here...,,
    Gracias...!!

  • How should i use the two results sets in one single report data region?

    Hi frnz,
     I have to create a report using the below condition...
    Here my given data  set query gives you the two result sets ,so how should i use that two result sets information in single report....when i accessing that data set query it will take the values off the first result set not for the second result set.
    without using sub report and look up functionality..... if possible
    is there any way to achieve this.....Please let me know..
    Thanks!

    You cant get both resultsets in SSRS. SSRS dataset will only take the first resultset
    you need to either create them as separate queries or merge them into a single resultset and return with ad additional hardcoded field which indicates resultset (ie resultset1,resultset2 etc)
    Then inside SSRS report you can filter on the field to fetch individual resultsets at required places. While merging you need to make sure metadata of two resultsets are made consistent ie number of columns and correcponding column data types should be same.
    In absence of required number of columns just put some placeholders using NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Multiple Column Header in Report (BEx and Web Reporting)

    Hi All,
            I've a requirement where my reports is having multiple column header.
       To be precise the column header is further divided into many sub-columns (upto 4 levels).
    Structure cannot help in this case since we have more than 2 such columns and we are using web reporting as well.
    Here is how it looks
                             <b>Header-A</b>
    Header-B1   |   Header-B2   |   Header-B3    |  Header-Bn
    Hdr-C1 |Hdr-C2 |Hdr-D1 |Hdr-D2 |Hdr-E1 |Hdr-E2 |Hdr-Fn..
    The above is a sample header structure.
    This report will be a Web Based report and I need to know whether its possible to do it in BEx also.
    We are not using Crystal Reports.
    If there is any document related to this, please mail to
    [email protected]
    Thanks & Regards,
    Chandran Ganesan

    Hi Chandran,
    I hope i am getting your problem right.
    If your
    Header-B1 | Header-B2 | Header-B3 | Header-Bn
    Hdr-C1 |Hdr-C2 |Hdr-D1 |Hdr-D2 |Hdr-E1 |Hdr-E2 |Hdr-Fn..
    are a set of key figures, then there is an option.
    For example:
    You drag Header-B1,Hdr-C1 |Hdr-C2
    into column section.Right click on Hdr-C1, Hdr-C2 and select down under. So your Hdr-C1, Hdr-C2 will be under
    Header-B1.
    Like wise drag Header-B2,Hdr-D1,Hdr-D2
    Right click on Hdr-D1,Hdr-D2 and say Down under and these two will fit below Header-B2.
    You can repeat the above steps for Header-B3... Header-Bn
    The output will be same as the one you have specified above.
    Hope it helps,
    Regards,
    Parth.

  • Multiple BW Reports in one crystal report

    Hi All,
    I'm very new to crystal reports. My next project is on Crystal reports.
    I have a bw web report with 6 repots included in the web report.
    Is it possible to inlcude 6 reports in a crystal report........i had seen the subreport option in crystal reports but here the reports are placed next to other instead of one below the other..........
    if possible  please suggest steps.........
    regards,
    Raj

    Raj,
    The easy way... Open a new report and place the 5 reports next to each other in the design window as sub-reports.
    Jason

  • To Link a Crystal Report (2008) from Webi report - Prompts not to Repeat

    Hi ,
    I have created a Webi report and Crystal report (2008) both have the same prompts.now i want to create a Hyperlink in Webi to link the Crystal report.
    i am able to do this. however the crystal report is again asking to provide the prompts which i already given in Webi.which should not happen.
    So how to achieve this scenario in Webi.        
    Need your help as soon as possible.
    Regards,
    Kishore.

    Hi
    the information you need are in the following manuals
    [Viewing Crystal Reports Using URL Reporting|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_cr_url_reporting_en.pdf]
    and
    [Viewing Documents Using OpenDocument|http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_opendocument_en.pdf]
    Thanks!

  • Link to Child Webi report from Parent Webi report

    Hi All,
    I have child link for webi report in my parent webi report.
    But, when i click on URL for child report, its again asking for logon credentials.
    Is there any way to avoid asking logon credentials, instead it should pick credentials from parent.
    Please reply.
    Thanks,
    Bhanu

    Hi
          If your link contains different host that is, after clicking the link if you want to redirect to another document with another BO server that time you have to supply credential (Login info of this server).
    Case of same server no need to supply credential.
    Thanks

  • Multiple datasets with multiple tabular report in one SSRS Reports

    Hello Experts,
    I am using 3 Datasets for my report, which contains 3 tablix.  Dataset1 linked to Tablix1, Dataset2 linked to Tablix2 and Dataset3 to Tablix3 respectively. Also I have 4 parameters @StartDate, @EndDate, @ISTop10 and @Is_Top10.  I have set this
    @ISTop10 (Prompted as :  Top 10 Practices ) parameter as Boolean, Available values 'None' and Default values 'Specify values' (false). Similarly @Is_Top10 parameter set as Boolean, Available values 'None' and Default Values'specify Values' (false)
    All the three separate query (Dataset 1, 2, 3) are running successfully  in SSMS. Even there is no error while running this report. However, this report shows perfect data for Tablix1 only while for Tablix2 and Tablix3 pulling
    NO data only the Header and Column Name . 
    FYI - During Preview, I am selecting StartDate, EndDate, Top 10 Practice : True  and Top 10 Providers : True then hitting View Report.  I am using SSRS 2008 r2.
    Please help ASAP. Thank you  :)

    Hello Experts,
    Below codes are running successfully in SSMS and pulling correct data but when I am using this same code
    for SSRS 2008 r2 reports then are neither pulling any data nor showing any error.  The
    parameters @StartDate, @EndDate, @ISTop10 and @Is_Top10.  I have set
    @StartDate, @EndDate as Date/Time and this
    @ISTop10 (Prompted as :  Top 10 Practices ) parameter as Boolean, Available values 'None' and Default values 'Specify values' (false). Similarly @Is_Top10 parameter set as Boolean, Available values 'None' and Default Values'specify Values' (false).  During
    Preview I am selecting StartDate, EndDate, Top 10 Practice : True  and Top 10 Providers
    : True then hitting View Report. Tablix1 and 2  are pulling NO data,
    only the Header and Column Name for both of them.
    Please help ASAP.
    I believe I am missing something. I
    am desperately looking for some tips on this issue. 
    -- Dataset1 for Top_10_Practices --
    DECLARE @Date1 DATETIME ,
    @Date2 DATETIME ,
    @ISTop10 INT
    SELECT TOP 10 d .practice_id, d .mapped_to_practice, LTRIM(b.User_Desc) AS Worklist, a.Sent_To, a.Username AS Sent_From,
    COUNT(DISTINCT c1.proccode) AS Proc_Count, row_number() OVER (ORDER BY COUNT(DISTINCT proccode) DESC, Practice_ID)
    AS Rank_Prac
    FROM HTPN_Medic.dbo.HTPN_OI_Worklist AS a INNER JOIN
    HTPN_Medic.dbo.HTPN_OI_Users AS b ON a.Sent_To = b.Username INNER JOIN
    htpn_vision.dbo.ifx1_fin_header AS c ON LEFT(Item_ID, CHARINDEX('|', Item_ID) - 1) = RTRIM(c.patkey) AND RIGHT(Item_ID, LEN(Item_ID) - CHARINDEX('|', Item_ID))
    = RTRIM(c.invno) INNER JOIN
    htpn_vision.dbo.ifx1_fin_detail AS c1 ON c.patkey = c1.patkey AND c.invno = c1.invno AND c1.rec_type = '1' LEFT OUTER JOIN
    htpn_vision.dbo.ifx1_fin_auxdr AS c2 ON c.patkey = c2.patkey AND c.invno = c2.invno AND c2.orderno = 1 LEFT OUTER JOIN
    HTPN_Warehouse.dbo.r_Provider_Xref_Master AS d ON d .Source_ID = 27 AND c.drno = Dr_ID AND c.groupno = d .GroupNo AND c1.faccode = d .faccode AND
    c.deptno = d .deptno AND ISNULL(c2.auxdr, '0') = d .Extender_ID
    WHERE Sent_To IN ('BHNIADJ_V', 'BHNIADJ_M') AND (a.Item_Type = 3) AND Date_Stamp BETWEEN @Date1 AND @Date2 AND @ISTop10 = 1
    GROUP BY LTRIM(b.User_Desc), a.Sent_To, a.Username, d .practice_id, d .mapped_to_practice
    -- Dataset2 for Top 10 Providers --
    DECLARE @Date1 DATETIME, @Date2 DATETIME, @Is_Top10 INT
    SELECT TOP 10 LTRIM(b.User_Desc) AS Worklist, a.Sent_To,
    a.Username AS Sent_From, d .dr_id, d .mapped_to_physician, COUNT(DISTINCT c1.proccode)
    AS Proc_Count, row_number() OVER (ORDER BY COUNT(DISTINCT proccode) DESC, dr_ID)
    AS Rank_Prov
    FROM HTPN_Medic.dbo.HTPN_OI_Worklist AS a INNER JOIN
    HTPN_Medic.dbo.HTPN_OI_Users AS b ON a.Sent_To = b.Username INNER JOIN
    htpn_vision.dbo.ifx1_fin_header AS c ON LEFT(Item_ID, CHARINDEX('|', Item_ID) - 1) = RTRIM(c.patkey) AND RIGHT(Item_ID, LEN(Item_ID) - CHARINDEX('|', Item_ID))
    = RTRIM(c.invno) INNER JOIN
    htpn_vision.dbo.ifx1_fin_detail AS c1 ON c.patkey = c1.patkey AND c.invno = c1.invno AND c1.rec_type = '1' LEFT OUTER JOIN
    htpn_vision.dbo.ifx1_fin_auxdr AS c2 ON c.patkey = c2.patkey AND c.invno = c2.invno AND c2.orderno = 1 LEFT OUTER JOIN
    HTPN_Warehouse.dbo.r_Provider_Xref_Master AS d ON d .Source_ID = 27 AND c.drno = Dr_ID AND c.groupno = d .GroupNo AND c1.faccode = d .faccode AND
    c.deptno = d .deptno AND ISNULL(c2.auxdr, '0') = d .Extender_ID
    WHERE Sent_To IN ('BHNIADJ_V', 'BHNIADJ_M') AND (a.Item_Type = 3) AND Date_Stamp BETWEEN @Date1 AND @Date2 AND @Is_Top10 = 1
    GROUP BY LTRIM(b.User_Desc), a.Sent_To, a.Username, d .dr_id, d .mapped_to_physician

Maybe you are looking for