Search code examples
reporting-servicesssrs-2008ssrs-2012

Excel Function within SSRS 2012


From what I have read this may not be possible but thought it was worth asking, I am trying to Export a SSRS 2012 report but maintain an Excel Function at the same time.

I have a Text Box in my SSRS report which when export always appears in Row/Column D33 I have a figure of 20. I have coded in to a Cell on my report =D33* "a figure that is returned in the report, the Expression I have used is ="=DD3*"&Cint(Fields!LABC_Hours.Value), when exported this comes out as =D33*5 but what is should be doing is the calculation =20*5. Is there a way of doing this?

Thanks in advance.


Solution

  • Short answer is no.

    As you've probably seen in your research, there was limited support for this in SSRS 2005 but not in subsequent versions.

    See Breaking Changes in SSRS 2008.

    In earlier versions of Reporting Services, there was limited support for translating expressions in RDL to Microsoft Excel formulas. In this release, when you export a report to Excel, RDL expressions are not translated to Excel formulas.

    Needless to say, this is a popular request, see this Connect item:

    SSRS 2008 export formulas to Excel.

    While refreshing my memory about all of this, I did see a few notes that suggested if you use expressions which directly reference the ReportItems collection like:

    =ReportItems!val1.Value + ReportItems!val2.Value
    

    Then this would work, but I ran a simple test now in SSRS 2008 and it made no difference.

    I think the general consensus is that you're just out of luck on this one, sadly.