使用中斷在 SAP Web Intelligence 中獲取表中的 MIN 和 MAX 日期


可以透過建立一個指標來實現此目標,具體指標取決於您要查詢的條件 - POST-Test 的最小抽取日期時間和 PRE-Test 的最大抽取日期時間。

一旦建立此指標,它將根據條件以黃色突出顯示的行顯示“Y”,而對於其他行則顯示“N”。

=If ([Drawn date] = Min([Drawn date]) In ([Patient ABO/RN])  Where ([PrePost] = "POST") )
 Or ([Drawn date] = Max([Drawn date]) In ([Patient ABO/RN])  Where ([PrePost] = "PRE")  )
 Then "Y" Else "N"

您需要對帶有指標值“Y”的行應用篩選器。

另一個選擇是您可以建立 3 個變數,如下所示 -

Max Accession: =Max([Accession]) Where ([Variables].[Pre/Post] = "PRE") In ([Patient Birth Date])
Min Accession: =Min([Accession]) Where ([Variables].[Pre/Post] = "POST") In ([Patient Birth Date])
Accession Min/Max= If ([Accession]=[Min accession])Then 1 ElseIf ([Accession] = [Max accession]) Then 2 Else 0 (By using these, you will get 1 to the min accession, 2 to maximum and 0 to the rest of values in the report)

然後使用條件應用過濾器以選擇大於 0 的值。

更新於:12-Mar-2020

1K+ 瀏覽

開啟你的 職業生涯

透過完成課程獲得認證

開始
廣告