0
我是Cognos Reporting的新手,我想知道有一種方法可以創建有條件的模型/查詢。例如:Cognos報告中的條件查詢或模型
"if x is not null then append this 'where line' to query"
就像那樣,我對Cognos仍然很陌生,所以我可能會使用錯誤的單詞。
請幫我一把。
謝謝。
我是Cognos Reporting的新手,我想知道有一種方法可以創建有條件的模型/查詢。例如:Cognos報告中的條件查詢或模型
"if x is not null then append this 'where line' to query"
就像那樣,我對Cognos仍然很陌生,所以我可能會使用錯誤的單詞。
請幫我一把。
謝謝。
如果要過濾查詢主題行, 右鍵單擊您的查詢主題>編輯Defition>篩選器選項卡>添加過濾器 在表達式定義框中,
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-25 02:02:53