Forum Discussion

XtensibilityGuy's avatar
XtensibilityGuy
New Contributor
3 years ago

Format to show "-" when "0" within cubeviews

Is it possible to have a number formatting to show a dash "-" rather than a zero "0"? Thanks

  • Mustafa_A's avatar
    Mustafa_A
    Contributor II

    Hi XtensibilityGuy 

    Thanks for asking the question. I learned something new as well.

    This should work -- 

     

        If (CellAmount = 0.00) Then
            NumberFormat = "-"

     

     

    Would appreciate a Kudo. 

    Cheers,

    Mustafa 

     

     

     

  • aricgresko's avatar
    aricgresko
    Contributor III

    Make sure you consider the ExcelNumberFormat, ReportNoDataNumberFormat, and ReportNumericBindingFormat.  A simple solution is to create some literal value parameters to use as formatting on the Cell Format Formatting within your cube views.   Here's a sample of our standard number formatting for non percentage values.