=WeekdayName(weekday(Today())) gives me tomorrow - reporting-services

I have noticed with one of my reports (SSRS), when I add weekdayname, that tomorrow's value appears.
I tested this by adding a textbox with =WeekdayName(weekday(Today())) in it. I have just run this (on a Monday) and it is saying Tuesday. So clearly it's one day out.
Does anyone know how I can go about rectifying this? I can get round it in reports by adding an expression but I suspect there's some deeper problem that I would like to rectify.
Any advice would be much appreciated.

Try specifying the first day of the week in the Weekday function to be determined by the system settings.
=WeekdayName(Weekday(Today(),FirstDayOfWeek.System))

Related

Why does this expression work in one spot but not another when using the same data?

I have 2 reports here that are machine schedules (Wrap & Moulder). They were working great, until I tried to add a checkbox to say whether or not the previous step had been marked completed. It worked initially on Wrap Schedule but when I did the exact same thing on Moulder Schedule it is coming out as data type mismatches. In the checkbox I have put the expression:
=IsDate([Previous_Date_Ran])
It works great on Wrap Schedule, but as soon as a Date is entered in the [Previous_Date_Ran] field I am getting data type mismatches. I have narrowed it down to whenever a date is put into that field, which is odd because when it is Null there is no issue. I have made sure already that my other form that supplies this [Previous_Date_Ran] field is inserting =Date() and not =Now() or =Time(). Below will be screenshots of it working on Wrap but erroring on Moulder.
[
Thank you if you have suffered through with me so far, any help would be much appreciated!
For anyone still struggling here is the steps I took to fix this problem:
Firstly, I have the field Date_Ran as a Date/Time, formatted to short date. Another form has an on-dbl-click event where it inserts today's date in the field. Turns out when you use =Date() in VBA is assigns it a default Variant type. For whatever reason I believe this was what caused the error. The second I switched to using =Date$() it inserts today's date as a string and the error has stopped. Good luck!

Between 2 dates form Validation Access. I've tried many different things and nothing works

I'm having a hard time figuring out why my code isn't working with this front end form validation rule regarding a range of dates.
So far I've tried many different solutions stated below that have kept yielding me the same error. The data I've been inputting is 03/29/2021 and it's giving me an error when it should be in that range.
Does someone know why and how to go about fixing it? Thank you!
Between #1/1/2012# and Date()
Not IsNull([Date]) And Between #1/1/2012# And #1/1/2024#
Not IsNull([Date]) And Between #1/1/2012# And Date() (I would like to use this one the most to eliminate as much human error as possible)
Not IsNull([Date]) And Between #01/01/2012# And #01/01/2024#
Not IsNull([Date]) And Between #01/01/2012# And Date()
Not IsNull([Date]) And Between #01/01/2012# And >= Date()
This setting for the validation rule works:
Between #01/01/2012# And Date() And Not Is Null

Srss Report #error

I am trying to get a column in a report, and I am having the issue where the report will show #error in the column. I think I have found the cause, but I am unsure, and I'm also unsure how to solve it.
The code I am currently using is:
=iif(SUM(Fields!ask_response.Value)>SUM(Fields!ask_totalduration.Value), "Time Met", "Time not Met")
Some of the values have 0 in the one of the 2 columns involved. Is there a way to get it to say "Time Not Met" if the value is 0?
Thanks
Joe
Nested IIf's are a true pain and I have had similar issues before. Copy this to a new location and start over, working your way from the inside out, testing at each level to make sure you do not get an error.
I am not sure you should be using sum in this instance.
I am not sure if this will work but I have...
=iif(IIf(IsNothing(Fields!ask_response.Value),0,Fields!ask_response.Value) > IIf(IsNothing(Fields!ask_totalduration.Value),0,Fields!ask_totalduration.V‌​alue),"Time Met", "Time not Met" )

Need Savings totals by month to pull data correctly and display in Chart

My data and this SSRS chart have a ton of problems, I'll try to keep my question(s) succinct.
First, as you can see by this chart and this screenshot of my data (just showing date and April Savings), my expression/chart is not summing all of the savings within a month, which is my goal.
It appears to be picking one amount within the correct month and using it. I set up a tool tip for April so I could see what number it's pulling (since clearly the chart columns are not representing the data whatsoever - another issue).
You'll see in the SQL data screenshot that it does indeed pull $1,230 from the April 2013 Savings. How can I get this to Sum within the month AND still do a running value from the beginning of time data began to current, this often will include multiple years.
Here's my Chart Data (note that my Team Goal works perfectly, and is even charted correctly - but if anyone knows how to force that line to go from end to end on my chart, feel free to let me know.) :
To summarize, how can I sum each month's data, while still do a running value across the months AND years?
Here's my Expression for Implementable Savings:
=RunningValue(Sum(Fields!ImplementableSavings.Value), Sum, nothing)
(obviously if I can get one working, I can get both)
My Expression for ImplementedSavingsMonth:
=MonthName(Month(Fields!ImplementedSavingsDate.Value))
My Expression for ImplementedSavingsYear:
=Year(Fields!ImplementedSavingsDate.Value)
Let me know if there's anything else I can provide.
Quick sidebar question: WHY does my chart column collect one piece of data. IE: see the tool tip $1,230 for April 2013), but the chart column displays that the number is around $1.7M? And in this scenario, both of my blue and yellow columns are displaying the same number, so why does blue always appear to be a higher number? I will ask this as a 2nd question if it's inappropriate for me to ask here.
I would use this Expression for Implementable Savings:
= RunningValue ( Fields!ImplementableSavings.Value, Sum, "Chart1")
.. assuming your Chart's name is Chart1.

sum 2 columns in a reporting services matrix

I have matrix in my report having column field "Layer Origin".
Layer Origin has 3 values:
New Business
Renewal - Rewritten
Renewal - Same Terms
if i run the report as is it will show Totals for each of the 3 above.
What i what is to show the Totals for:
New Business
Renewal (Renewal - Rewritten + Renewal - Same Terms)
i.e.: i want to sum the values of Renewal-Rewritten and Renewal- Same Terms
Below is a screen shot to illustrate my request.
Thanks for your reply.
ive tried the below code but it gave me error (see the below screen)
=SUM(IIF(Fields!Layer_Origin.Value="New Business",0,Fields!USD_Cedent_Premium.Value))
I appreciate your feedback.
This situation can be handle if you just use conditional SUM in Total Column
=SUM(IIF(Fields!Layer_Origin.Value="New Business",0,Fields!USD_CED.Value))
Instead of using
=SUM(Fields!USD_CED.Value)
I think it will solve your problem. Pardon me if some spell mistake or syntax error. As i dont have any VS intalled to check.
Share if you still face any issue bcz this one is definetly i can help.
After Several testing i found the problem.
the code should be as below:
=SUM(IIF(Fields!Layer_Origin.Value="New Business",CDec(0.00),Fields!USD_Cedent_Premium.Value))
Thanks for your assistance