Forum Discussion
RobbSalzmann
3 days agoValued Contributor II
I would include a check for NoData in your if statement:
Dim JTDRevenueLoadedDataCell = api.Data.GetDataCell("A#REVENUE_EARNED:U8#None:O#Top:F#EndBal:V#YTD:T#POV") as DataCell
Dim JTDRevenueLoadedDataCellStatus = JTDRevenueLoadedDataCell.CellStatus as DataCellStatus
Dim JTDRevenueLoaded = JTDRevenueLoadedDataCell.CellAmount as Decimal
If api.Pov.Cube.Name.XFEqualsIgnoreCase("WIP_Cube") Then 'run for the WIP Cube
If ((Not api.Entity.HasChildren()) OrElse api.Cons.IsForeignCurrencyForEntity()) Then 'Run for base entities and all Canadian Entities
If (JTDRevenueLoadedDataCellStatus.IsNoData OrElse JTDRevenueLoaded = 0) Then 'if Earned Revenue is zero
- OlaWidera2 days agoNew Contributor II
Hi Rob,
Thank you for this suggestion. I implemented it but still didn't get the positive outcome. I technically should have data (zero) because I would enter data into a test, but to your point in real life we might have no data situation as well so will keep that part of the formula
Related Content
- 11 months ago
- 2 years ago
- 3 years ago