Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Reporting question

$
0
0

Hi All,

I'm trying to modify an existing report in SSRS and I do not have the RDL from the original project, but I think I've found the part of the report that colour codes certain cells. Downloaded it to notepad to modify and upload back to SSRS. Basically it shows how much life a product has left, 0 days is red, 1 day is orange more than 1 day is white (no concern)

Text
=SWITCH(DateDiff("d", CDATE(Now()), CDATE(Fields!date1.Value)) < 0,"Red", DateDiff("d", CDATE(Now()), CDATE(Fields!date1.Value)) 1,"Orange", DateDiff("d", CDATE(Now()), CDATE(Fields!date1.Value)) > 2,"White")

How can i expand the orange to 1-5 days? I tried

between 1 and 5

between '1' and '5'

between ('1' and '5')

Trying to then upload this back to SSRS gives an error, anyone able to point me in the right direction?

"contains an error: [BC32017] Comma, ')', or a valid...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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