Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Clause issue in SSRS report

$
0
0

Dear Folks,

I have below query which is working fine in SQL but if i use same query in SSRS dataset then it is not working at all.If i put only one condition in where clause then it works but if i put multiple conditions then it does not works in SSRS and through error "data is not available".

SELECT id,
	DATEDIFF(DAY, Created, BMTRequestReviewDate) AS 'EvaluateDays',

.....all code goes here

FROM [dbo].[SBWT_Data]
WHERE
	upper(Status) not like '%XX%'
	AND upper(Status) not like '%DELETED%'
	upper(Status) not like '%CLOSED%'
---OR
WHERE Status NOT IN ('90 - Closed','XX - Rejected','XX - Request Rejected','XX - Deleted')

As you can see in code i have tried with both where conditions but it is not working. It seems that SSRS does not supports multiple conditions for same field.

Appreciate your help


Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help


Viewing all articles
Browse latest Browse all 10045

Trending Articles