这可以通过根据要查找的条件创建一个指标来实现-POST测试的最小绘制日期时间和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的值。