Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Cognos 10.1 で Report Studio を使用しています。Last month や Last week などのプロンプトを実装する必要があるレポートがあります。問題は、詳細フィルターを使用せずにプロンプトを実装する必要があることです (たとえば、スライサーやその他の方法を使用)。月と週の次元と年がありません。どうすればよいですか?
正確な方法は、データベースによって異なります。ただし、基本的には、日付に独自の相対ロジックを実装する必要があります。例として、先週、次のようなことをするかもしれません
IF ?DateTypePrompt? = 'PRIOR WEEK' then YourDate between (CURRENT_DATE and CURRENT_DATE - 7 DAYS). ...