Basic table question - include empty rows

Hi msdn,
I create SSRS reports for MS CRM 2011 in Visual Studio Shell 2010 (SQL Server 2012).
For
my Dataset, i use fetch xml from the crm. 
I'm currently creating a report which  should list all the lost opportunities from one year grouped by the reason(statuscode)
of their loss.
The table below is working but it doesn't include "empty statuscodes"(Reasons with no opportunities attached to
it)
(Stückzahl 2013 = number of opportunities) (Angebotssumme 2013= Sum of all opportunities in CUR)
I have a list in my crm with all the possible reasons, a number of  25 Statuscodes.
I want them all to appear in the table and when there is no lost opportunity linked to it, just display a 0.
Below is my dataset query and as you see, i select the opportunity first and statuscode is a field in it
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="opportunity">
<attribute name="name" />
<attribute name="customerid" />
<attribute name="estimatedvalue" />
<attribute name="statuscode" />
<attribute name="opportunityid" />
<order attribute="name" descending="false" />
<filter type="and">
<condition attribute="statecode" operator="eq" value="2" />
<condition attribute="statuscode" operator="not-null" />
<condition attribute="estimatedvalue" operator="not-null" />
<condition attribute="actualclosedate" operator="not-null" />
</filter>
<link-entity name="new_automatisierung" from="new_verkaufschance" to="opportunityid" alias="ae"></link-entity>
</entity>
</fetch>
So my question is which possibilities i have to achive my goal?
Is it even possbile with this dataset?
I hope i made it clear enouth for you guys to understand. As you can see, im fairly new to SSRS.
Thank you in advance

Hi there,
You may need two queries to do this, #1 to retrieve status codes & opportunities and #2 above query to get details.  Bind the table to #1 query.  Then use lookup or lookupset function to retrieve results from #2.
http://technet.microsoft.com/en-us/library/ee210531.aspx
You might have more luck in Dynamics forum.
http://community.dynamics.com/crm/f/117/t/108149.aspx
cheers,
Andrew
Andrew Sears, T4G Limited, http://www.performancepointing.com

Similar Messages

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • Create Table with extra empty row

    Hi,
    I have two problems...
    I need to create a table from DB with one extra empty row.
    Is there an easy way to do this?
    And I need a button to delete all in that table.
    something like SQL:
    delete from tableX
    Anything that helps me on the way... what I should look for?

    835652 wrote:
    Hi,
    I have two problems...
    I need to create a table from DB with one extra empty row.
    Is there an easy way to do this?this is strange requirement can you clear what is your use case ?
    >
    And I need a button to delete all in that table.
    something like SQL:
    delete from tableX
    Anything that helps me on the way... what I should look for?Try this http://baigsorcl.blogspot.com/2010/11/how-to-execute-sql-dml-statements-in.html

  • Basic table question

    Sorry for the basic question, but what I am trying to figure
    out is the best way to do something. I have a main table and I want
    to insert a table into it for a nav bar about 1/4 of the way down
    on the main table. I am wondering which of these 3 ways to "best"
    do it, all 3 I have played with do but I am wondering the best way:
    1 - place it to align at the top and hit the return key
    before until is down to where I want it
    2 - place a empty table above it and make the height of it an
    amount to push the nav bar table down to where I want it
    3 - place it to center align and then use a margin on the
    bottom to push it up to where I want it
    Thanks.

    614mike wrote:
    > Sorry for the basic question, but what I am trying to
    figure out is the best
    > way to do something. I have a main table and I want to
    insert a table into it
    > for a nav bar about 1/4 of the way down on the main
    table. I am wondering which
    > of these 3 ways to "best" do it, all 3 I have played
    with do but I am wondering
    > the best way:
    >
    > 1 - place it to align at the top and hit the return key
    before until is down
    > to where I want it
    Definately NO
    > 2 - place a empty table above it and make the height of
    it an amount to push
    > the nav bar table down to where I want it
    Height is invalid so NO
    > 3 - place it to center align and then use a margin on
    the bottom to push it up
    > to where I want it
    Nearly. Why don't you align it to the top and use a top
    margin to push
    it down....that's more logical.
    Use some css like this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    #mainTable td {
    background-color: #CCCCCC;
    #menuHolder {
    margin-top: 100px;
    #menuHolder td {
    background-color: #99CC99;
    </style>
    </head>
    <body>
    <table id="mainTable" width="730" border="0"
    cellspacing="0"
    cellpadding="0">
    <tr>
    <td valign="top">
    <table id="menuHolder" width="730" border="0"
    cellspacing="0"
    cellpadding="0">
    <tr>
    <td>Menu</td>
    </tr>
    </table>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    <p>Other Content</p>
    </td>
    </tr>
    </table>
    </body>
    </html>

  • How to add empty rows in table in smart form

    how to add empty rows in table in smart form?
    plz help me regarding this
    send me ur queries to [email protected]

    You will need to add some extra rows to the internal table that your table is displaying.  Use a program node to append additional rows with a key but no argument.
    Alternaively a template may me more suitable for your requirement than a table.
    Finally, please do not include you e-mail address in your question.  Your question and the answers provided to it are for the benefit of everyone in the Community.
    Regards,
    Nick

  • Appending empty rows in internal table

    Hi,
      i am using table control, where there is a condition, some row may left empty. end if i press enter button the empty row is filled by the next available record. My need is to pick the records in the table control to the internal table including the empty rows as it is.

    Hi Karthikeyan,
    By default with user pressinng enter, empty rows will get deleted.
    How are you populating your table control? Is it from standard transaction or your internal table?
    If it is from your internal table, you can add anothe flag field for empty row.
    Whenever row is empty in your internal table, mark flag field as 'X', so in the table control you these entries will not get vanished with pressing of enter.
    This is one idea and you can build on this. You can make this flag column as non editable so that no one can change these.
    hope this helps,
    ags.

  • How to avoid displaying empty rows in a table?

    The situation is as follows:
    I have got a set of questions under a particular category say marketing category.
    The user will be displayed with a table consisting of a set of questions from a particular category with four radio buttons for each question.
    Now once he is done with all the set of questions under a particular category, he will be navigated to the next set of questions under some other category say 'xyz'
    Now instead of creating seperate view objects for each category, we have created a view object which will hold all the set of questions from all the category but will display only the set of questions under a particular category by declaring a variable in the backing bean and setting the question rendering to the value in the variable. the value to the variable will be changed once the user is done with answering all the set of questions under a particular category.
    Now the problem that i am facing is:
    Because of the rendering condition that i have used, it displays only those rows that have the rendering condition set to the variable in the backing and displays all other empty rows overlapped.
    How do i avoid this situation ??

    Seems odd, but you could use COALESCE to achieve this.
    ME_XE?create table all_nullz (col1 number, col2 number, col3 number);
    Table created.
    Elapsed: 00:00:00.20
    ME_XE?
    ME_XE?insert into all_nullz values (1,2,3);
    1 row created.
    Elapsed: 00:00:00.12
    ME_XE?insert into all_nullz values (null, null, null);
    1 row created.
    Elapsed: 00:00:00.06
    ME_XE?
    ME_XE?delete from all_nullz where coalesce(col1,col2,col3) is null;
    1 row deleted.
    Elapsed: 00:00:00.26
    ME_XE?

  • How to delete empty row without validation error in ADF Table(EMP)

    Hi Everyone,
    I am using EMP Table in ADF jspx page to insert the data into database.when i insert a row into table by createInsert operation,it inserting the row.But I need to delete that row immediately with out entering any value.
    But it showing some validation error at empno.Is there any ways to delete the empty row?if not,what are the reasons that we can't delete the row.
    could any one tell me the reasons!!
    Thanks in advance!!
    With Best Regards,
    Amar
    Edited by: 973755 on Dec 11, 2012 6:42 AM

    Amar,
    I am little confused with your logic here.....
    but if you are trying to remove the row by clicking Remove button, you can set the immediate property to true and that remove function will run without executing any entity validation.......
    -R

  • "Include Header Row in Subsequent Pages" is not working for table

    Hi,
    I'm using version 8.1.2.3337.1.509884.
    The pagnation feature "Include Header Row in Subsequent Pages" is not working for any table in my design. ( the check-box can not be checked no matter how many times I clicking it)
    I put such table already in a flow bodypage.
    Any similar issue reported?
    Any suggestions?
    Thanks.
    -Vicky

    Hi Raghu,
    Appologies that I uploaded a wrong version of xdp file yesterday.
    Here is the correct one.
    https://acrobat.com/#d=jr0XffvBZWXd0cVhL0OQ3A
    I totally understand that I have to check the checkbox "Include Header Row in Subsequent Pages".
    My problem is that, although I can see that checkbox, and it's not grey-out, I can not tick it. See below screenshot, with the red-cycle mark.
    You can try with above file.
    Just wondering why such weird behavior happened.
    -Vicky

  • Count of non-empty rows of a table

    How to I get the number of non-empty rows of a table ?
    Thanks

    You can loops through the rows and check whether any cell is empty or not? Use a counter variable to increment the same.
    Thanks,
    Bibhu

  • Advanced Table delete empty rows

    Hi
    I added logic to add 10 empty rows and to delete the empty rows when the form is submitted. But somehow it only deletes the rows in current screen of the Advanced Table. if there are 15 rows and I click next to go the last 5 and submit the form it deletes only the 5 empty rows but not the other 10 rows in the previous section.
    where am I doing wrong?
    Thanks
        Row [] row = null;
        ExpAttendeesVORowImpl rowi = null;
        if( expattendeesvoimpl1 != null )
            row = expattendeesvoimpl1.getAllRowsInRange();
            System.out.println("No of items "+row.length);
        for (int i=0;i<row.length;i++)
             pageContext.writeDiagnostics(this, "in loop ", 2);
             rowi = (ExpAttendeesVORowImpl)row;
    pageContext.writeDiagnostics(this, " in loop row "+ rowi.getName(), 2);
    if((rowi.getName() == null))
    pageContext.writeDiagnostics(this, "deleting row"+ rowi.getName(), 2) ;
    rowi.remove();
    Thanks

    you could instead try using:
    expattendeesvoimpl1.getFilteredRows("Name", null);

  • Table loading with empty selected row

    hi i have below table ,when the page load it has empty row created, i what it to show that message emptyText=No data to Display when the page load,the table was created based on the bean,am in jdeveloper 11.1.1.6.0,i don't what to use #{!adfFacesContext.initialRender} becuase it does not allow me to add value in the table
    <af:table
                              var="row" rows="#{bindings.addmemberBean.rangeSize}"
                              emptyText="#{bindings.addmemberBean.viewable ? 'No data to display.' : 'Access Denied.'}"
                              fetchSize="#{bindings.addmemberBean.rangeSize}"
                              rowBandingInterval="0" id="t1"
                              binding="#{pageFlowScope.MemberBean.tempTable}"
                              value="#{bindings.addmemberBean.collectionModel}"
                              rowSelection="multiple"
                              selectionListener="#{bindings.addmemberBean.collectionModel.makeCurrent}">
                      <af:column sortProperty="name" sortable="false"
                                 headerText="#{bindings.addmemberBean.hints.name.label}"
                                 id="c6" width="106">
                        <af:outputText id="ot2" value=" #{row.name}"/>
                      </af:column>
                      <af:column sortProperty="surname" sortable="false"
                                 headerText="#{bindings.addmemberBean.hints.surname.label}"
                                 id="c4" width="104">
                        <af:outputText value="#{row.surname}" id="ot3"/>
                      </af:column>
                      <af:column sortProperty="emailaddress" sortable="false"
                                 headerText="#{bindings.addmemberBean.hints.emailaddress.label}"
                                 id="c5" width="105">
                        <af:outputText value="#{row.emailaddress}" id="ot4"/>
                      </af:column>
                      <af:column sortProperty="firstname" sortable="false"
                                 headerText="#{bindings.addmemberBean.hints.firstname.label}"
                                 id="c3" width="105">
                        <af:outputText value="#{row.firstname}" id="ot1"/>
                      </af:column>
                      <af:column id="c7" headerText="AddUser">
                        <af:selectBooleanCheckbox
                                                  label="Label 1" id="sbc1"/>
                      </af:column>
                      <af:column headerText="#{bindings.addmemberBean.hints.name.label}"
                                 id="c8" visible="false">
                        <af:inputText value="#{row.bindings.name.inputValue}"
                                      label="#{bindings.addmemberBean.hints.name.label}"
                                      required="#{bindings.addmemberBean.hints.name.mandatory}"
                                      columns="#{bindings.addmemberBean.hints.name.displayWidth}"
                                      maximumLength="#{bindings.addmemberBean.hints.name.precision}"
                                      shortDesc="#{bindings.addmemberBean.hints.name.tooltip}"
                                      id="it2">
                          <f:validator binding="#{row.bindings.name.validator}"/>
                        </af:inputText>
                      </af:column>
                    </af:table>and i don't what to user
    public void emptytable(){
            ViewObjectImpl vo = this.getAddMemberVo1();
            vo.executeEmptyRowSet();
        }because am not using a view,am using a bean
    Edited by: adf0994 on 2012/11/06 10:38 AM
    Edited by: adf0994 on 2012/11/06 10:41 AM
    Edited by: adf0994 on 2012/11/06 10:44 AM

    public Beantest() {
    super();
    addmemberBean = new ArrayList<AddmemberBean>();
    This way, the list will be completely empty when your bean is created.
    And thus, your table shouldn't contain any data.

  • Empty rows in advanced table

    Hi there,
    In my advanced table with multiple selection check box, I have the logic to insert 10 rows into the view object before the table is rendered. So my table display 10 new blank rows.
    Assume user only enter 3 rows and I don't want to save those 7 empty rows. How can I recognize the 7 empty rows and remove them from the VO?
    Please advise.
    thanks,
    Charles

    Hi Charles,
    You may be dispalying some columns on OAF page, check all thos for null, if every field is Null then it is unused and you can remove it.
    This is sample code:
    public void deleteUnusedLines()
    XXEGASRLinesVOImpl pervo = getXXEGASRLinesVO1();
    if(pervo==null)
    Row row[] = pervo.getAllRowsInRange();
    System.out.println("No of items "+row.length);
    for (int i=0;i<row.length;i++)
    XXEGASRLinesVORowImpl rowi = (XXEGASRLinesVORowImpl)row;
    if((rowi.getItemDescription()==null)||("".equals(rowi.getItemDescription().trim())))//add more conditions here to locate empty rows.
    rowi.remove();
    Regards,
    Reetesh Sharma

  • Empty rows in a table should not be displayed

    Hi,
    I have an ADF table which contains 10 rows and 5 columsns,
    in which i have rendered all the values in 5 columns of 5 rows to false.
    But when displaying the table,the empty rows are displaying by overlapping..
    I do not want to display those empty rows.
    Thank u
    Bhanu

    Duplicate of How to make some rows of a table invisible
    Frank

  • How to make a empty row in a table in itext

    Table table = new Table(4,2);
    table.setWidth(100);
    table.setBorder(1);
    Cell cell = new Cell("1");
    table.addCell(cell);
    table.addCell("2");
    table.addCell("3");
    table.addCell("4");
    table.addCell("");
    table.addCell("");
    table.addCell("");
    table.addCell("");
    document.add(table);
    in this 1st row will be created bt not the second one.can u plz tell me any solution.i will b thank ful to you.

    .can u plz tell me any solution.i will b thank ful to you.http://www.catb.org/~esr/faqs/smart-questions.html#writewell
    How To Ask Questions The Smart Way
    Eric Steven Raymond
    Rick Moen
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal — in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. **Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.**

Maybe you are looking for

  • Help with iTunes options

    Hi all, In the 'options' section of 'Get Info' on a song, there is the option 'Skip when shuffling'. What does it do exactly ? If I tick this option will iTunes skip over this song when doing a random play of my song library ? I seached iTunes help a

  • Delays in mail delivery

    I've recently noticed big delays in the time that messages show up in my Mail app, sometimes hours after they were sent to me. Today I noticed that there were at least ten messages visible to me on the mac.com web site, but I couldn't get those messa

  • CFCHART question (range in the background)

    Hola. I want to put together a line graph using CFCHART. That part works great. But I also want to display a horizontal band of color that shows the "acceptible range" of values, so that it is obvious to the users when the data points fall outside th

  • Quality Manager 9.x - initial setup fails

    Hi all, I'm trying to set up WFO on a single VM for our lab system. I've gone through the install guide multiple times, yet Postinstall fails to get past the initial System Database step and throws this error: Schema program failed: Could not run scr

  • Error creating a GRN

    Good afternoon, When I try to save a Goods Return note i get the following error. "Invalid object name 'ORDP'.(CINF)" I've tried with different BPs and different items and still the same error. Thanks.......Naomi