Cookie preferences

Choose which optional cookies we may use. Your choice applies to this browser for 12 months, and you can change it at any time.

Needed for the site to work and to remember your cookie choice. These are always on.

Cookies used (1)
  • motio_consent · Motio · 12 months
    Remembers your cookie choices and the consent ID used to record them.

Google Analytics tells us which pages people visit and how they use them, so we can improve the site.

Cookies used (2)
  • _ga · Google Analytics · 2 years
    Distinguishes visitors.
  • _ga_<id> · Google Analytics · 2 years
    Keeps session state.

LinkedIn, Google Ads and Salesloft measure which campaigns bring people here, show our ads to people who have visited before, and identify which companies visit.

Cookies used (5)
  • _gcl_au, _gcl_aw · Google Ads · 90 days
    Measures ad clicks and conversions.
  • li_fat_id · LinkedIn · 30 days
    Conversion tracking, retargeting and analytics.
  • li_giant · LinkedIn · 7 days
    Conversion tracking for groups of members.
  • bcookie, lidc, li_sugr, UserMatchHistory, AnalyticsSyncHistory · LinkedIn (linkedin.com) · 1 day – 1 year
    Identify the browser and match visits to LinkedIn members for ads.
  • sliguid, slireg · Salesloft Scout (salesloft.com) · 7 days – 1 year
    Identifies visiting companies for sales follow-up.
Skip to content
← All writing
Cognos AnalyticsBy motio75·2 min read

Locate and Mass Update Fonts in ALL your Cognos Reports, Quickly and Easily

Imagine your organization has decided to update their brand, and you’re tasked with updating the fonts on ALL company-wide reports that aren’t Arial or Helvetica with Arial. But how would you proceed to accomplish this herculean task? The average Cognos customer has between 10,00 and 15,000 reports in their production environment. So you would have to dive into tens of thousands of reports and manually edit each and every one! MotioPI Pro provides a more efficient method for mass updating all your Cognos BI content. Here is a look into how to update your fonts.

What are regular expressions

A regular expression (regex or regexp) is a special text string that can help you match, locate, and manage text. Regular expressions may seem puzzling at first glance, but once mastered you can save hundreds of hours by avoiding the tedious process of manually searching for text. Here, I will show you how to use MotioPI Pro Search & Replace panel to find all fonts with the exclusion of Arial and Helvetica and update your fonts to be Arial.

Using Search & Replace Panel

The Search & Replace panel allows you to mass update content within the Content Store (reports, queries, analysis objects, etc.) and outside the Content Store (XML files, CPF files, etc.). To begin, open MotioPI Pro.

1. Click on the “Search & Replace” located on the left-hand panel.


2. Under the “Search & Replace” tab, you will see the “Query for:” drop-down menu. Click on the drop-down menu and select “Report”. This drop-down menu will set the type of Cognos object that you want to examine in MotioPI Pro.


3. In the “Options” box, select “Skip overlapping occurrences”. This will provide us with a clear view of every original regular expression.


4. In the “Search” and “Replace” section, we will input the following commands: *Make sure the regular expressions ([a-z]*) checkbox is selected.*


The first row will search for fonts within quotations and replace them with Arial font. The second row will replace fonts with Arial that are not already Arial with Helvetica. The brackets surrounding our search terms will be referenced and replaced by our replacement terms.


5. Below the “Search” and “Replace” columns, click on “Search” to locate all the reports that contain our search terms.


6. Once the search has been completed, click on the checkbox on the left of “Name” to select all your reports. Below, you can select an individual report to see a preview of the search terms and their locations.


7. To begin replacing our search terms, select “Preview”.


8. In the “Preview” window, you can double-check the changes before they are finalized to your reports. To confirm your changes, click on “Replace” in the bottom right corner.


9. Now all of the reports that met the search criteria have been replaced with the Arial font.


Purchase MotioPI Pro directly on our website.

Originally published on motio.com ↗