SQLServerCentral.com / Article Discussions / Article Discussions by Author / Discuss content posted by Frank Fernando / SSRS Expressions Tips and Tricks / Latest PostsInstantForum.NET v2.9.0SQLServerCentral.comhttp://www.sqlservercentral.com/Forums/notifications@sqlservercentral.comSun, 02 Aug 2015 16:34:30 GMT20RE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxHi Frank,Your last point: "As a quick note, did you know that you can upload Excel, Access, HTML and other files to reporting services. Very handy especially if you want to include a help file with your report etc"Can you expand on this point?Regards,EmmettMon, 04 Mar 2013 02:23:40 GMTemmettjarlathRE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxThank you very much Frank...I am a newbie to SSRS and this will very helpful :-DThu, 29 Jul 2010 09:00:21 GMTMichael-321617RE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxExcellent post! very helpful. I am waiting for rest of tricks in the bag :-)Just another expressions which I am working on currently. Please let me know if you have any ideas. I have report with "Jump to Report" set. It is working fine. I would like to disable the hyperlink if value is 0. Is it possible to do using expressions?thanks a lot! and keep up good workFri, 05 Mar 2010 04:20:44 GMTjammyRE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxThanks for the Tips, some of them have already come in quite handy.For the Expression 4, I must warn you that they will not always return the last day of the month. Let me explain this in an example:Lets assume today is the 22nd of March. Now lets run that through your Expression.First, we deduct the day-number from the current date [code="vb"]DateAdd("d", -1.0 * DatePart("d", Today)[/code]that leaves us with 2010-02-28, the last date of the LAST month. so far so good. Now you add one month to get the final result[code="vb"]=DateAdd("m", 1, "QueryAbove", Today))[/code]This will result in the following date: 2010-03-28 which is not the last date of this month.I've been using a very similar expression for quite some time and noticed my mistake only after some customers started to complain. Fortunately only default-dates were affected, so the customers could manually override them. It was a painful workaround, but at least they had one.I suggest to reverse your Expression to the following[code="vb"]=DateAdd("d", -1.0 * DatePart("d", DateAdd("M", 1, Today)), DatePart("d", DateAdd("M", 1, Today)))[/code]Like this, you will first jump to the next month and then subtract all excess days.I've written these Expressions out of my head and haven't tested them. So you might find the odd typo or something.Best RegardsBendyMon, 11 Jan 2010 03:19:34 GMTbendy1999RE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxHi guys. i have tried one of your expressions: iff( rownumber(nothing) mod2, "blue","green") i have a two groups and in the details again have grouped by three fields so that i can get sum for same kind of items. so i have applied this formatting to the details row but when i see the report it is showing two rows same color and again one row different and again two rows same. i dont get to know what is happening...Tue, 05 Jan 2010 17:35:24 GMTcrunchycocktailRE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxLove this collection of tips! I think this article deserves a continuation.Thank you.Wed, 23 Dec 2009 23:22:07 GMTMisha_SQLRE: SSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxFrank, there are some cases where your formulas dont give the correct values. When you use a series of dates from 2008 formulas 3 + 4 return the wrong days.Wed, 23 Dec 2009 04:17:44 GMTFatherjackSSRS Expressions Tips and Trickshttp://www.sqlservercentral.com/Forums/Topic838066-2562-1.aspxComments posted to this topic are about the item [B]<A HREF="/articles/Reporting+Services+(SSRS)/67660/">SSRS Expressions Tips and Tricks</A>[/B]Tue, 22 Dec 2009 10:25:46 GMTFrank Fernando