SSRS How to remove a blank row

Hi All;
Below is my SSR deign
which gives me the Preview as below
Can you please help me remove the rows which bring 0 . In this case the row Yesterday 0 0 needs to come out
Any help much appreciated
Thanks
Pradnya07

I would alter a T-SQL statement that returns the data filtering out the rows with value=0
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • How to remove the blank lines at the end of the JTextArea .

    Hi,
    I need to remove the blank lines in the JTextArea at the end. Suppose i am giving 'A' in the first line and press the enter key two times, after i am giving the 'B' in the third line and press enter key for two times. I need to remove, the last two lines of JTextAreae, . How i can remove these lines?

    String#trim() removes all whitespace from both ends of the String.
    The requirement was to remove line breaks from the end of the String only.
    String#replaceAll with a suitable regex would do the trick. Untested regex for this:text.replaceAll("[\\n\\r]+$", "")db

  • How to remove last blank page from preview of Smartform

    Hi Experts ,
    I am creating a smartform having vbeln range option. Now if i give range from 2 to 10 then After Doc NO. 10
    i got a blank page . So can u please tell me how to remove that.
    Rgds,
    Premraj

    hey,
    Create a program lines node.....
    in that describe the internal table in which you are having the document number.If you are having 10 document number then you will be having 10 pages.... so create program lines befor the command line in the command line just give a flag ok.
    when the 10th page is created then the control comes to program line where the pagenumber will be equal to the number of document number there create a flag ( f = 'X') then give this codition in command line.Trigger the command line when ever f NE 'X'.So in the last time new page will not be triggered.
    Regards,
    Midhun Abraham

  • How to add a blank row into a datatable

    i hava adatatable which contains the datas from database.i need to add a new data so that i need a blank row which contain the same number of columns in the existing datatable.
    Pls Help..

    sorry i am a beginner in jsf..
    In the crud Example i saw a code in MyCrudBean.java.i wrote the code like that but the same stage only one row is coming i cant add n items .
    * Department.java
    * Created on Nov 22, 2007, 4:43:12 PM
    package datatable;
    import Item.DeptDatabase;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.webui.jsf.component.Body;
    import com.sun.webui.jsf.component.Form;
    import com.sun.webui.jsf.component.Head;
    import com.sun.webui.jsf.component.Html;
    import com.sun.webui.jsf.component.Link;
    import com.sun.webui.jsf.component.Page;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.FacesException;
    import javax.faces.component.html.HtmlDataTable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.sql.DataSource;
    public class Department extends AbstractPageBean {
    Connection con = null;
    PreparedStatement StmtRateSel = null;
    ResultSet rs = null;
    private List<DeptDatabase> list = new ArrayList();
    private int addCount = 1;
    private HtmlDataTable myDataTable;
    private static final int DEFAULT_TABLE_ROWS = 10;
    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
    * <p>Automatically managed component initialization. <strong>WARNING:</strong>
    * This method is automatically generated, so any user-specified code inserted
    * here is subject to being replaced.</p>
    private void _init() throws Exception {
    private Page page1 = new Page();
    public Page getPage1() {
    return page1;
    public void setPage1(Page p) {
    this.page1 = p;
    private Html html1 = new Html();
    public Html getHtml1() {
    return html1;
    public void setHtml1(Html h) {
    this.html1 = h;
    private Head head1 = new Head();
    public Head getHead1() {
    return head1;
    public void setHead1(Head h) {
    this.head1 = h;
    private Link link1 = new Link();
    public Link getLink1() {
    return link1;
    public void setLink1(Link l) {
    this.link1 = l;
    private Body body1 = new Body();
    public Body getBody1() {
    return body1;
    public void setBody1(Body b) {
    this.body1 = b;
    private Form form1 = new Form();
    public Form getForm1() {
    return form1;
    public void setForm1(Form f) {
    this.form1 = f;
    // </editor-fold>
    * <p>Construct a new Page bean instance.</p>
    public Department() {
    public void deptsave() throws SQLException{
    connection();
    StmtRateSel      = con.prepareStatement("execute prcPnsDepartmentIns");
    rs = StmtRateSel.executeQuery();
    con.close();
    @Override
    public void init() {
    // Perform initializations inherited from our superclass
    super.init();
    // Perform application initialization that must complete
    // before managed components are initialized
    // TODO - add your own initialiation code here
    // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
    // Initialize automatically managed components
    // Note - this logic should NOT be modified
    try {
    _init();
    } catch (Exception e) {
    log("Department Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Perform application initialization that must complete
    // after managed components are initialized
    // TODO - add your own initialization code here
    * <p>Callback method that is called after the component tree has been
    * restored, but before any event processing takes place. This method
    * will <strong>only</strong> be called on a postback request that
    * is processing a form submit. Customize this method to allocate
    * resources that will be required in your event handlers.</p>
    @Override
    public void preprocess() {
    * <p>Callback method that is called just before rendering takes place.
    * This method will <strong>only</strong> be called for the page that
    * will actually be rendered (and not, for example, on a page that
    * handled a postback and then navigated to a different page). Customize
    * this method to allocate resources that will be required for rendering
    * this page.</p>
    @Override
    public void prerender() {
    * <p>Callback method that is called after rendering is completed for
    * this request, if <code>init()</code> was called (regardless of whether
    * or not this was the page that was actually rendered). Customize this
    * method to release resources acquired in the <code>init()</code>,
    * <code>preprocess()</code>, or <code>prerender()</code> methods (or
    * acquired during execution of an event handler).</p>
    @Override
    public void destroy() {
    * <p>Return a reference to the scoped data bean.</p>
    * @return reference to the scoped data bean
    protected SessionBean1 getSessionBean1() {
    return (SessionBean1) getBean("SessionBean1");
    * <p>Return a reference to the scoped data bean.</p>
    * @return reference to the scoped data bean
    protected RequestBean1 getRequestBean1() {
    return (RequestBean1) getBean("RequestBean1");
    * <p>Return a reference to the scoped data bean.</p>
    * @return reference to the scoped data bean
    protected ApplicationBean1 getApplicationBean1() {
    return (ApplicationBean1) getBean("ApplicationBean1");
    private void connection() {
    try{
    Context ctx = new InitialContext();
    System.out.println("context"+ctx);
    if(ctx == null )
    throw new Exception("Boom - No Context");
    DataSource ds = (DataSource)ctx.lookup("BiteRiteJNDI");
    if (ds != null) {
    con = ds.getConnection();
    System.out.println("connnn"+con);
    catch(Exception e)
    {System.out.println(e);}
    public void addDataItem() {
    while (addCount-- > 0) {
    DeptDatabase myNewDataItem = new DeptDatabase();
    //myNewDataItem.setEditMode(true);
    list.add(myNewDataItem);
    //log(myDataList);
    // Reset counter and go to last page.
    addCount = 1;
    // log(myDataList);
    // Reset counter and go to last page.
    //addCount = DEFAULT_ADD_COUNT;
    pageLast();
    System.out.println("in add itm");
    // list.add(new DeptDatabase());
    public List getListtt(){
    return list;
    public HtmlDataTable getMyDataTable() {
    if (myDataTable == null) {
    myDataTable = new HtmlDataTable();
    myDataTable.setRows(DEFAULT_TABLE_ROWS);
    return myDataTable;
    private static void log(Object object) {
    System.out.println("bejoy"+new Exception().getStackTrace()[1].getMethodName() + ": " + object);
    public void pageLast() {
    System.out.println("in Page last");
    int count = myDataTable.getRowCount();
    System.out.println("count"+count);
    int rows = myDataTable.getRows();
    System.out.println("rows"+rows);
    if (rows != 0) { // Prevent ArithmeticException: / by zero.
    System.out.println("not equals zero");
    myDataTable.setFirst(count - ((count % rows != 0) ? count % rows : rows));
    log(new Integer(myDataTable.getFirst()));
    public void setListtt(List<DeptDatabase> list) {
    this.list = list;
    * CRUD table: set datatable.
    * @param myDataTable The datatable.
    public void setMyDataTable(HtmlDataTable myDataTable) {
    this.myDataTable = myDataTable;
    jsp
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    Document : Department
    Created on : Nov 22, 2007, 4:43:11 PM
    Author : Administrator
    -->
    <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page binding="#{Department.page1}" id="page1">
    <webuijsf:html binding="#{Department.html1}" id="html1">
    <webuijsf:head binding="#{Department.head1}" id="head1">
    <webuijsf:link binding="#{Department.link1}" id="link1" url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body binding="#{Department.body1}" id="body1" style="-rave-layout: grid">
    <webuijsf:form binding="#{Department.form1}" id="form1">
    <h:dataTable binding="#{Department.myDataTable}" id="myDataTable" value="#{Department.listtt}" var="dataItem">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Departments"/>
    </f:facet>
    <h:inputText value="#{dataItem.department}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="StockItem"/>
    </f:facet>
    <h:inputText value="#{dataItem.stockItem}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="StockUnit"/>
    </f:facet>
    <h:inputText value="#{dataItem.stockUnit}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="MaxStock"/>
    </f:facet>
    <h:inputText value="#{dataItem.maxStock}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="MinStock"/>
    </f:facet>
    <h:inputText value="#{dataItem.minStock}"/>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="ReorderLevel"/>
    </f:facet>
    <h:inputText value="#{dataItem.reorderlevel}"/>
    </h:column>
    </h:dataTable>
    <h:commandButton action="#{Department.addDataItem}" value="Add"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    i dont know wats the problem??
    pls send a sample code to add n items

  • Remove extra blank rows in ORACLE SPOOLING

    I am trying to spool a table result to a .dat file.
    The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
    Eg:
    Original data as in DB
    A B C
    1 1 ABC DEF GH
    2 1 DEF GHI JK
    SPOOL FILE O/P
    A | B | C |
    1 | 1 | ABC |
         | |DEF |
         | |GH |
    2 | 1 | DEF |
         | | GHI |
         | | JK |
    Thanks,
    Dheepan

    Dheepan wrote:
    I am trying to spool a table result to a .dat file.
    The problem is the output spool file has 3 rows after each row with a column having its row data split as 3 for every enter key in the data.
    Eg:
    Original data as in DB
    A B C
    1 1 ABC DEF GH
    2 1 DEF GHI JK
    SPOOL FILE O/P
    A | B | C |
    1 | 1 | ABC |
         | |DEF |
         | |GH |
    2 | 1 | DEF |
         | | GHI |
         | | JK |
    Thanks,
    Dheepancan you post script?
    BTW, have you included SET TRIMSPOOL ON ?
    When you have moved your question, Close that thread ORACLE SPOOLING extra blank rows
    Edited by: CKPT on Mar 24, 2012 10:07 PM

  • How to add a Blank row ?

    Hello Experts
    I probably have a very simple question - but i just need to kno :
    What is an option if i want to leave a blank row as a seperator between data sets in my report output ?
    I have to report on the portal and this would be a BI 7.0 Query.
    Please suggest
    Regards
    Shweta

    well - I was looking for an option to use the query designer to do this. so i created a structure in the rows and added a Key figure to it and after that i wanted to blank out the values by using cell definition and saying hide results there.
    However ; i see some issues here
    1. the cell definition box on my query is grayed out - any idea why ?
    2. what if i want to add key figures in columns - since i am using them in a structure in the rows - i can not use them in columns - but actually - i will want key figs in columns - so then the alternative that i am using is not feasible - so what can i do then ?
    I don't think i will use WAD or web template.
    what do you suggest ?
    Regards
    Shweta

  • How to add a blank row in a report structure ?

    Hi,
    I have a report which uses a structure in both the rows and the columns. It also using cell definitions to define some cells in the report.
    What I want to do is to format the report a bit more and insert a blank line at various points in the row structure.
    Can this be done and if so how?

    Are you creating report on InfoCUbe or ODS?
    Are you aware of any characteristics for which value will never be ZERO in the Dataprovider?
    If yes, then remove the formula and create the selection with description .(dot) and restrict that characteristics by #. That would pullout space for all the KFs.
    - Danny

  • How to insert one blank row in table using ODataModel?

    Hi,
    I have a table in which the data is being shown using ODataModel. Now I want to add a new row dynamically when user clicks on 'New' button. For this I know using JsonModel it would be something like below where every field in the table is almost  blank as I want users to enter the data in it and later I want to save the data in the model at server:
    var tableModel = table.getModel();
      var tableData = timeSheetTable.getModel().getData();
      tableData.modelData.push({"workItem":"item5","day1":"","day2":"","day3":"","day4":"","day5":"","day6":"","day7":""});
       tableModel.setData(tableData);
      timeSheetTable.setModel(tableModel);
    How this thing can be achieved using ODataModel? I can't push data like what is shown above.
    I tried searching examples for this but no luck. Any help would appreciated.
    Thanks,
    Supriya Kale

    Hi,
    I have a table in which the data is being shown using ODataModel. Now I want to add a new row dynamically when user clicks on 'New' button. For this I know using JsonModel it would be something like below where every field in the table is almost  blank as I want users to enter the data in it and later I want to save the data in the model at server:
    var tableModel = table.getModel();
      var tableData = timeSheetTable.getModel().getData();
      tableData.modelData.push({"workItem":"item5","day1":"","day2":"","day3":"","day4":"","day5":"","day6":"","day7":""});
       tableModel.setData(tableData);
      timeSheetTable.setModel(tableModel);
    How this thing can be achieved using ODataModel? I can't push data like what is shown above.
    I tried searching examples for this but no luck. Any help would appreciated.
    Thanks,
    Supriya Kale

  • How to remove unnecessary blank(white) page when using FileDownload UI

    Hi, all.
    My env is like the following.
    NW2004s SPS11.
    i tried the file upload/download sample.
    Uploading and Downloading Files in SAP NetWeaver 7.0
    /people/bertram.ganz/blog/2007/05/25/new-web-dynpro-java-tutorials--uploading-and-downloading-files-in-sap-netweaver-70
    Of course, it works well in normal situation but FileDownload shows
    unnecessary behavior like the following.
    - How to produce : Download file with allowSave behavior option
    - Phenomena : File Download pop-up window is displayed but the
        unnecessary blank(white) page also displayed and this page
        persists even when the download is finished.
    And is there any way to remove this unnecessary page behind the
    pop-up window?
    Best Regards.&#12288;
    Sejoon

    Hi,
        It is not possible to close the blank window that appears while downloading programmatically from within your Web Dynpro application. The user must manually close it.
    Regards,
    Satyajit.

  • A blank white rectangle appears infront of loading pages, forced to click it closed. How to remove these blanks from happening?

    I click a link and while page is loading, a single wide blank rectangle with an x in the upper right corner pops up. I am forced to close it by clicking the X. I cannot click on the desired 'loaded page' that sits behind the blank box at all. This happens throughout the day, everyday for the last 3 months. So annoying. I am not computer savvy. I took a pic for you to see, but I cannot figure out how to send it to you.

    You can't attach a screenshot to the first post that starts a thread, but you can do that in subsequent replies.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to remove only one row from the database using labview6.1

    using labview 6.1 I create a table with various rows and columns and store bulk of data's in them.,, what procedure should I follow to remove only one paticular row from the database? Help me out with an example please,,
    Thanking you in advance!

    Hi,
    If you have the database toolkit you can delete a row using just a SQL Query to "DB Tools Execute Query.VI"
    Example:
    DELETE FROM Table name Where SerialNum='Value' And Date='Value' And Time='Value'
    See also attached VI
    Best Regards
    Johan
    Attachments:
    Delete_a_row_in_a_database_table.vi ‏48 KB

  • How to remove extra blank spaces from log file.

    i have created a log file which contain the logs of a program. the logs are getting created fine for the first execution of the program but from the second time the log file is getting blank space's after every character.
    i have used the code to append the text in log files few examples : 
     'Clean up process started....' >> $log
    File name :'+ $files +'Time-Stamp: '+ $endtime +'Search complete.' >> $log 
    .i want to remove the extra spaces after each character but not all the spaces from the file. Thanks in advance.

    hi  mjolinor
    add-content is used to insert text it does not append text at the file .i used >> to append the text on log file ..
    from 
    Get-Help ADd-Content
    Synopsis
    Appends content, such as words or data, to a file.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • How to remove an empty row after a table anchor?

    We are using FrameMaker 12 on a Windows 7 (64 bit) platform.
    I am working my way down a chapter of training content. I am halfway down the chapter, and—as fate would have it—I need to start a table at the top of a page.
    When I insert a table (with a caption/title at the top), FM creates an anchor at the top of the page. The space to the right of the anchor is a blank line.  I actually want the table to start at the top of the page without the blank line to the right of the anchor.
    This is what I tried, with the results:
    I put the cursor after the anchor, and press Delete.
    Result: The text *below* the table is brought up above the table.
    I put the cursor after the last bit of text on the previous page, and press Delete.
    Result: The paragraph on the previous page moves down to the next page on top of the table, leaving a large blank space on the previous page.
    I change the Start option (on Table Designer) to Top of Column (or Top of Page).
    Result: FM leaves the anchor where it was, moves the table down to the next page, and leaves a totally empty page where the table used to be.
    Is there any way to just move the table up so that it is on the same line as the anchor?
    (And as a tool design issue, is there EVER a reason why a content developer would want an entire blank line above of a table?)
    Thank you in advance,
    Tim

    I've always thought it strange that FrameMaker doesn't properly butt
    tables against the top of a column by default. Here's how to make tables
    do it.
    1. First, in the Table Designer, on the Basic tab, set Spacing Above to
    a negative number, such as -2.0 pt, for the table. (You probably want to
    update all of your table styles to use this number by default.)
    2. Create an anchor paragraph style to hold tables, perhaps naming it
    TableAnchor. In the Paragraph Designer, on the Basic tab, set Spacing
    Below Pgf to the same negative number, such as -2.0 pt, for this
    paragraph style and select the "Fixed" checkbox. On the Default Font
    tab, set the font to the same number, but positive-- such as 2.0 pt.
    3. Now, whenever you want to insert a table, first insert a TableAnchor
    paragraph to hold the table, then insert  your table. The table will not
    only fit properly against the top of a column, but should also look
    better when it follows text in a column.
    NOTE: Anywhere I've used 2.0 or -2.0, you can use any number you want,
    just be sure to get the signs right and use the same number in all three
    places. Some people use 12.0 pt and -12.0 pt, for example.

  • How to remove a blank page that won't leave?

    I have a document, about 75 pages, single sided, that has a blank page in the middle. No matter how many times I try to delete it, it comes right back. I have made sure the there is not a new section starting at that point, and cannot see any reason why it persists. Anyone have an idea?
    Thanks,
    Richard

    If you show the non-printing characters as I mentioned earlier (and you might want to also show text threads -- View > Extras > Show Text threads and select a frame) you'll see that page 37 is threaded into the flow, and the frame contains a page-break character. That's probably left over from some previous methos of controlling that the next paragraph start on a new page, which for reasons that should be fairly obvious now is better handled by applying a keep option to that paragraph.
    Delete the break and the text will flow back into that frame, leaving a blank at the end of the file which you may delete.

  • How to remove  a 'blank' folder on my desk top

    G'day
    I  have have 3 'blank' i.e. empty folders on my desk top and can't remove them. The background is I bought a cheap USB hub and plugged both of my external ard drives into it and when I tried to back up I managed to create the blanks. I can't drag them into the trash and can't move them around 'cos they immediatley shift back to the same position on my desk top.  Any ideas please?

    Udeshini,
    what steps are you taking to try to create a new folder on your desktop? Does an error message of some sort appear?

Maybe you are looking for

  • How can I tell if my Muse is up-to-date?

    I know how to check Muse > About Muse to see which version I am running. But, how can I tell if I am running the latest version of Muse? I can't seem to find anywhere on the Adobe site that will tell me what the latest version is, nor, can I find a "

  • Fusion-icon loading problem

    Hi everyone. Recently I installed compiz fusion and I get this error when I load fusion-icon on the terminal. * Setting window manager to Compiz ... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp compiz (core) - Fatal: No GLXFBCo

  • FF has become too kludgey & confusing!?

    We used to use a very early version of FF which was fast, easy to use, enjoyable. Recently upgraded to FF 9 and we're going crazy with all the complicated drop-down menus and many levels you need to traverse to do a simple thing like PURGE ALL PRIVAT

  • BO Enterprise XI for Windows and Oracle 11.2

    Hi Currently we are running BO Enterprise XI for Windows 3.1 SP3 which SAP does not support on Oracle 11.2.  Does this limitation only apply for the repository and audit database but not for the reporting database? Can the Oracle 11.2 client be used

  • Is it really better to use a G-RAID?

    Does it really make the computer run faster when you use a external drive to use a the caoture scratch for FCP? Or I guess what I mean is not slow the computer down so much compared to storing the captured film on your computers intrenal hard drive?