IBM Cognos BI - Dynamically Change Columns in a Report with One Prompt Selection

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,597
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 11, 2011

This video will demonstrate how to use a prompt macro, case statements, a prompt control with static choices, and conditional formatting to dynamically control which columns are displayed in a report and how they are displayed.

The syntax used in this technique is provided below.
Prompt Macro Syntax

#prompt('Report Type', 'token', '[Sales].[Order Method].[Order Method]')#

Case Statements Syntax

Details Column

Case

When (?Report Type? = '[Sales].[Order Method].[Order Method]') then ([Sales].[Products].[Product Line])

When (?Report Type? = '[Sales].[Products].[Product Line]') then ([Sales].[Products].[Product Type])

Else ([Sales].[Products].[Product Description])

End

Measure Column

Case

When (?Report Type? = '[Sales].[Order Method].[Order Method]') then ([Sales].[Sales].[Quantity])

When (?Report Type? = '[Sales].[Products].[Product Line]') then ([Sales].[Sales].[Revenue])

Else ([Sales Target].[Sales Target].[Sales Target])

End

For more IBM Cognos Proven Practices content, please visit http://www.ibm.com/developerworks/data/library/cognos/cognosprovenpractices.html

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Nice vid! More please. :-)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more