Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all articles
Browse latest Browse all 24955

Max Subquery in SSRS filter

$
0
0

How do I build a filter that does the same as the below SQL query?

SELECT [EFFECTIVEDATE]
      ,[ENTITYID]
      ,[OWNERID]
      ,[OWNERSHIPTYPE]
      ,[PARTNERSHIPTYPE]
      ,[EXPIRATIONDATE]
      ,[OWNERSHIPHEADER]
      ,[SUBSCRIPTIONAMOUNT]
      ,[CREATEDDATETIME]
      ,[CREATEDBY]
      ,[MODIFIEDDATETIME]
      ,[MODIFIEDBY]
  FROM [AX6_DEV].[dbo].[CHLOTSOWNERSHIP] a
  where EFFECTIVEDATE=(select max(effectivedate) from [AX6_DEV].[dbo].[CHLOTSOWNERSHIP] b where a.ENTITYID=b.ENTITYID) 

I have tried a group filter with the below properties, but I only get the most current entity's data:

Expression: [Effectivedate]

Operator: =

Value: =Max(Fields!EffectiveDate.Value, "Table_0")

Thanks in advance,

Carl



Viewing all articles
Browse latest Browse all 24955

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>