How to SetUp Data Formats: Numbers, strings, dates in Cognos

Data Formats:

You can format data so that it matches any pattern of text and numbers when default formats are not appropriate. For example, you can format dates to use full text, including the era, or you can format them to only use numbers and show the last two digits of years to save space.
Using symbols and patterns can provide similar results as basic data formatting tasks. Patterns allow flexibility for more complex requirements.

Each supported content language code requires a specific set of symbols to be used in patterns. For each language code, there are two tables you will need; one for date and time symbols, and one for decimal symbols.

Formatting data in a report improves readability.

 MindMajix YouTube Channel

Data Formatting Properties

In the reports we can format numbers, strings, dates, currency and percentage (Different objects)

The following is a list of properties available in the data formatting dialog.

  • Maximum No. of Digits
  • Minimum No. of Digits
  • No. of Decimal Places
  • Date Ordering
  • Date Separator
  • Date Style
  • Currency
  • Currency Display
  • Currency Symbol
  • Currency Symbol Position
  • Percentage Symbol
  • Percent Scale
Learn how to use Cognos, from beginner basics to advanced techniques. Enroll for Free Cognos Training Demo!

Procedure:

  • Create a list report using the following query items
  • Order number
  • Order date
  • Product name
  • Quantity
  • Revenue
  • Select order date data cell
  • In the properties window
  • Under data
  • Select data format
  • Click on eclipse
  • Select the format type – select date
  • Set following properties – select – Date style – Medium
  • From Date separator select – Date ordering – Day, Month, Year
  • Click on OK–  Save & Run the report
Blog post image
Blog post image
Blog post image

HTTP://IBM.CO/1Q8CTOJ

 

Job Support Program

Online Work Support for your on-job roles.

jobservice

Our work-support plans provide precise options as per your project tasks. Whether you are a newbie or an experienced professional seeking assistance in completing project tasks, we are here with the following plans to meet your custom needs:

  • Pay Per Hour
  • Pay Per Week
  • Monthly
Learn MoreGet Job Support
Course Schedule
NameDates
IBM Cognos TrainingNov 19 to Dec 04View Details
IBM Cognos TrainingNov 23 to Dec 08View Details
IBM Cognos TrainingNov 26 to Dec 11View Details
IBM Cognos TrainingNov 30 to Dec 15View Details
Last updated: 28 Apr 2023
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read less