Hide CSV columns conditionally in SSRS reoprt (RDL)


  • Hi friends,

    I want to hide some columns in my report conditionally using an expression when report is exported to CSV format.  Column and textbox visibility setting works fine in PDF and Excel format but it is completely ignored in CSV format.  There is no way I can conditionally hide a column in CSV.  Google search and few articles suggest that this is by design behavior of SSRS and even Microsoft has confirmed that.  Please check following links.

    I would like to know when this will be fixed by Microsoft or whether there is any workaround.  Please let me know.



    • Edited by murtazat Sunday, November 10, 2013 8:52 PM
    Sunday, November 10, 2013 8:48 PM


  • Hi Murtaza,

    According to your post, I can reproduce the same issue in my test environment (SSRS 2012).

    Based on the thread your post, the XML and CSV renderers use the DataElementOutput property to control visibility. We can select which item we want to hide in the report, and set the “DataElementOutput” property with value “NoOutput” to work around the issue.

    Alternatively, we can add below expression to control the item’s visibility. Please refer to the expression below:

    In order to solve the issue more effective, I recommend you that submit a wish to the Microsoft Connect at Your feedback is valuable for us to improve our products and increase the level of service provided.

    Alisa Tang

    Alisa Tang
    TechNet Community Support

    Tuesday, November 12, 2013 2:40 AM