Cube View NoData Formatting in Excel

SaBrien
New Contributor II

Is there a way to format 'NoData' cells so that when the report exports to excel it shows a dash or 0, instead of the cell being blank?

1 ACCEPTED SOLUTION

tuhler
New Contributor II

Hi,

I was able to accomplish this using UD8 dynamic calc. By setting up a dynamic calc to return a 0 if IsNoData is TRUE. Then you can use the Excel formatting as Krishna mentioned.

Dim cellCheck As DataCell = api.Data.GetDataCell("UD8#None")

If cellCheck.CellStatus.IsNoData() Then
      Return 0
Else
     Return api.Data.GetDataCell("UD8#None").CellAmount
End If

Thank you,

Thomas Uhler

View solution in original post

3 REPLIES 3

Krishna
Valued Contributor

@SaBrien  - Try this setting in the CV Cell Format in Excelformat  ExcelNumberFormat = [#,###,0;(#,###,0);-]

 

Krishna_0-1714751039587.png

 

Thanks
Krishna

SaBrien
New Contributor II

We've tried many variations using the excel number format but none seem to work. Any cell that has 'NoData' will be blank and we were wanting them to show zeros.

tuhler
New Contributor II

Hi,

I was able to accomplish this using UD8 dynamic calc. By setting up a dynamic calc to return a 0 if IsNoData is TRUE. Then you can use the Excel formatting as Krishna mentioned.

Dim cellCheck As DataCell = api.Data.GetDataCell("UD8#None")

If cellCheck.CellStatus.IsNoData() Then
      Return 0
Else
     Return api.Data.GetDataCell("UD8#None").CellAmount
End If

Thank you,

Thomas Uhler