私は Cognos Reporting を初めて使用し、条件付きのモデル/クエリを作成する方法があるのだろうかと思っています。例えば:
"if x is not null then append this 'where line' to query"
そのようなものです。私はまだ Cognos にかなり慣れていないので、間違った言葉を使用している可能性があります。
私を助けてください。
ありがとう。
クエリ サブジェクトの行をフィルター処理する場合は、クエリ サブジェクトを右クリック > [定義の編集] > [フィルター] タブ > [フィルターの追加] 式の定義ボックスで、
x is null or (x is not null and <where expression to append>)
クエリ項目にフィルターをかけたい場合
case
when x is not null and <where expression to append>
then <some_query_item>
else <some_query_item>
end