how to subtract adjacent columns in an ssrs matrix

前端 未结 2 649
深忆病人
深忆病人 2021-01-24 23:44

\"MyI have an ssrs matrix which looks like the one below :

               Month(Columns)
            


        
2条回答
  •  無奈伤痛
    2021-01-25 00:32

    I found a way to calculate the differences between Matrix columns using the 'previous' function by adding the column grouping name.

    =Previous(Sum(Fields!AMOUNT.Value),"PeriodGroupName")
    

    Look here for a little more detail. http://www.tricks-and-tips.nl/tips-and-tricks/sql/ssrs/ssrs-matrix-compare-column-values And here for the documentation. https://docs.microsoft.com/en-us/previous-versions/sql/sql-server-2008-r2/ms156372(v=sql.105)

提交回复
热议问题