0

私は Cognos Reporting を初めて使用し、条件付きのモデル/クエリを作成する方法があるのだろうかと思っています。例えば:

"if x is not null then append this 'where line' to query"

そのようなものです。私はまだ Cognos にかなり慣れていないので、間違った言葉を使用している可能性があります。

私を助けてください。

ありがとう。

4

1 に答える 1

1

クエリ サブジェクトの行をフィルター処理する場合は、クエリ サブジェクトを右クリック > [定義の編集] > [フィルター] タブ > [フィルターの追加] 式の定義ボックスで、

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
于 2013-04-23T20:36:32.433 に答える