ZubairCSC
2 years agoNew Contributor II
Cash Flow Opening balance for MTD and YTD columns
Hi All, I want to get Last month ending balance in my MTD column of cash flow and last year ending balance in my YTD column of cash flow as you can see in above picture. Can anybody shar...
- 2 years ago
You will want to make this Flow Member to be Dynamic Calc. Here is an example from the CPM Blueprint with can be downlaoded from the Solution Exchange OpenPlace.
Dim currView As ViewMember = ViewMember.GetItem(api.Pov.View.MemberPk.MemberId) 'Current view member IDDim priorQtr As Integer = api.Time.GetLastPeriodInPriorQuarter(api.Pov.Time.MemberId) 'Prior QTR member IDDim priorQtrName As String = api.Time.GetNameFromId(priorQtr) 'Prior QTR nameIf currView.Name = "YTD" ThenReturn api.Data.GetDataCell("A#Cash:F#EndBal:T#PovPriorYearM12")Else If currView.Name = "Periodic" ThenReturn api.Data.GetDataCell("A#Cash:F#EndBal:T#PovPrior1")Else If currView.Name = "QTD" ThenReturn api.Data.GetDataCell("A#Cash:F#EndBal:T#[" + priorQtrName + "]")ElseReturn NothingEnd If