SSRS 2008R2 : Not able to use Previous aggregrate function in matrix columns cell

Hi Expert,
I have used a matrix tablix in my report. It is working fine. But when I am trying to use Previous aggregrate in one matrix column cell I get the below error:
The use of previous aggregrate function ia a tablix cell with in 'Tablix1' is not supported.
Please help me regarding that.
Thanks Rana

Hi Rana,
In your scenario, you use previous function in the “Data” cell, right? Previous function cannot be used in the overlapping parts of row group and column group. One workaround of this issue is use custom code to get the previous value.
Public Shared previous as Integer
Public Shared current as Integer
  Public Shared Function GetCurrent(Item as Integer) as Integer
     previous=current
     current=Item
     return current
  End Function
  Public Shared Function GetPrevious()
     return previous
  End Function
Then you can use the expression below in the “Data” cell to get the previous value:
=Code.GetCurrent(fields!Score.Value) & "-Previous-" & iif(Code.GetPrevious()=0,"",Code.GetPrevious())
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
TechNet Community Support

Similar Messages

Maybe you are looking for

  • Free Goods in Brazil with Nota Fiscal

    Hi Gurus Does anybody know how Free Goods work in Brazil, with Nota Fiscal? I mean, as we have the Nota Fiscal Document in this country, is it possible to configure Free Goods? Can anybody show me an example how to configure that? Is there any Fiscal

  • Swatch palette

    I've been using flash since v.1 and I don't know why I haven't found this so annoying until now, maybe it's because now I'm a teacher and I see the flaw for what it is through my students. Why is it that you can't change the size of the swatches in t

  • Change default and other printer presets

    I recently had to Refresh the printer's connection with my Wireless Router and laptop and (with help from HP tech support, thank you!) that was successful.  Now, however, when I click File, Print (while in a document) I no longer have the print optio

  • Hyperlinks not visible in UI

    Hi All, My requirement is to add two hyperlinks DISPLAY and CHANGE for the purchase order number. For this I proceeded like this: 1) I created two custom attributes DIS_PO and CH_PO under context node HYPERLINKS of the view IncidentHeader of SRQM_INC

  • When I try to install the new version of Flash Player on my iMac, Adobe installer rejects apple ID

    Adobe installer claims my Apple ID is incorrect when I try to install the new Flash Player.  iMac + OS Mavericks.  I have tried it many times.  Same ID works on two iPads, iTunes, etc. and on the iMac whenever it is asked for, other than with Flash P