Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Replacing 0 and nulls with hyphen (-) in obiee 12c

Received Response
144
Views
5
Comments
Rank 6 - Analytics Lead

How can i replace 0 and nulls in a report in tabular format to hyphen (  -  ) . I can get it done by converting the number to character . But i need it to be in the number format.

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • If you look at the help in the column properties where you can set the formal, you see the syntax to be used.

    It's a typical <positive number format>;<negative number format>;<zero/null format>

    You can't set a custom format for a not existing value, so if your cell is empty and not NULL, the format will not apply.

  • Rank 6 - Analytics Lead

    it is null

  • Actually a quick correction: the custom number format (https://docs.oracle.com/cd/E29542_01/bi.1111/e10544/format.htm#BIEUG13084 ) use the 3rd parameter for NULLs, not 0.

    Therefore you need to adapt the formula to translate 0 into NULLs first if you want it to match the 3rd parameter of the custom number format.

  • Rank 6 - Analytics Lead

    it is displaying fine. but while i exported those hyphens are not displayed in the excel

  • I guess I saw something similar in MOS, there are a bunch of docs about export to Excel, worth having a look.

Welcome!

It looks like you're new here. Sign in or register to get started.