Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Only Latest Date in Report

$
0
0
All:We are using a report model for this and not a direct query.We have a report that outputs Table A. We added Table B to the report model (we added some fields to the report from Table B), which is a many-to-one relationship to Table A. Now when we run the report, we are getting multiple rows, which is to be expected because of the relationship between Table A and Table B. The problem is, we only want to show on the report the latest record of Table B, based on "creation date". I tried to set a MAX(!fields.CreationDate)I found information such as: https://social.msdn.microsoft.com/forums/sqlserver/en-US/2bc16c90-21d6-4c03-a17f-4a5922db76fe/displaying-records-by-max-date-in-ssrsBut when I do something like this, I get a "cannot use aggregate function......" error. Would appreciate any help on how we can limit the report to only displaying the latest date record from Table B.

Viewing all articles
Browse latest Browse all 2791

Trending Articles