IBM Support

How to: Define Current Month as default value for prompt based on dimensional datasource

Troubleshooting


Problem

This document describes, how to define a value prompt control, that will use the current month as default value. The steps are based on a powercube, but can be repeated with other dimensional datasources. The month of the current date will be distinguished by the current_date function. The basic idea behind it, is to extract the current month from the current_date function, and to build a business key based on that, that can be compared to actual business keys of the cube. As only static values can be used as a default value in a prompt control, the current month of the time dimension needs to be replaced by a static text, like “Current Month”. The attached example is based on the Sales and Marketing (cube) package.

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Report Studio","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.2.2;10.2.1;10.2;10.1.1;10.1;8.4.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SS6G84","label":"IBM Cognos Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
08 May 2025

UID

swg21458631