SSRS report inconsistently showing rows - sql-server

I have a report where the query in SSMS is showing data correctly. However, when it comes to displaying it in SSRS, rows are slipping between the cracks for some reason. In this case, a row with the DetailChargeItem of "Special Vehicle Install".
In the past, recreating the report has resolved the issue and I did so because it was a simple layout. However, this report is a bit more complicated, so I'd like to instead find out what the problem is so I can address it.
Here's my data example from SSMS, so I know the data is actually there:
ServiceDate
First_Name
DetailChargeItem
AmountService
Nov 30 2021
Ryan
Install
115.00
Nov 30 2021
Ryan
Scheduled Service
25.00
Nov 30 2021
Ryan
Special Vehicle Install
99.00
However only these two charges are showing:
Strangely enough, on the same page just above that example, there is this example below that has the same charges, but deciding to show the charge that is missing on the first example (Special Vehicle Install).
Now I do have row groups, but there are no special exceptions anywhere. The grouping that affects the correctly-shown example also affects the incorrectly-shown example. No filters in the report's construction either. I've looked at the report's properties, and under General, the CanGrow property is set to True (this is as close as I could find to a potential explanation). Also, no parameters that could affect this (only start and end date). I'm hoping this is an issue that someone has encountered and knows more about.

Related

SSDT Sub-report is incomplete

I am working on my first report designed in Visual Studio (2015) SQL Server Data Tools.
My sub-report is only returning one record for each parent event though the sub-report's dataset is returning multiple records.
My Report:
On-the-clock-report in design view
The linking value for the sub-report is the field [EmployeeWorkSessionID]
The Sub-report
Breaks Sub-report in design view
The sub-report's dataset also contains the field [EmployeeWorkSessionID]
Sub-report preview #1
Sub-report for WorkSession 293
Run by itself this sub-report returns 2 records for WorkSession 293, including a Lunch still in progress.
Sub-report preview #2
Sub-report for WorkSession 288
Run by itself this sub-report returns 2 records for WorkSession 288, including a Lunch that is completed.
The (not so) complete report
The full report preview
The preview of the full report shows the first record for each WorkSession,
but none of the others. The EmployeeWorkSessionID's are associated with the correct Employee. The report space is large enough for three lines. The correct records are return by the datasets, they are just not displayed. The open lunch break (containing NULLs) is not the only record being skipped.
Any ideas?
This does not constitute and answer but is too long to fit in a comment...
Basically the design, from what I can see, looks OK. (BTW: Thanks for posting plenty of screenshots of the design and outcome, so many people don't..)
There are a few points and thing to try, more to eliminate them than solve it but give them a go and see what happens.
Make a copy first !
Check if any items have CanGrow = false and set them to true
(True is default)
Remove the rectangle around the report items
You have several text boxes overlapping, just ot be oin the safe side, move these so they don't overlap
Move the sub report so it's below the Breaks: text box
A few more comments just for reference.
The subreport placeholder in your main report can be smaller, it will expand to fit the content
You don;t need the blank space at the bottom of the subreport, the report will expand to fit the contents, any additional white-space, by default, will be appended under the subreport's tablix. In other words, shrink the subreport body as small as you can, this will also help to eliminate issues with pages spanning more than you want further down the line.
See how you go and post the results back here. Once these things are eliminated we can look further.
This issue is caused because SSDT Report Designer caches the data collected the first time you preview the report and does not rerun the dataset queries on subsequent previews!
Obviously some actions must cause it to renew the datasets because my report did change over the course on the days; but it did not change often enough to make it obvious what was happening. The solution below looked like it was working because moving the sub-report caused an update. But after that run the report data remained static while the database changed.
Here is a tool to reset (delete) the cached data.
And the stackoverflow article that saved (what's left of) my sanity.
My report was working the whole time; Visual Studio was being lazy.
If anyone knows of a way to force live data access for all previews I would love to know about it too.

SSRS glitch when previewing report

I have a report using a SSAS dataset, basically gives me a Reps sales figures by customer. The rep field I use has one rep called ST, and within this field at a lower level, includes ST and STS. The report was previously built using a different rep field which was incorrect. Now I have changed it, the data for some reason is not accurate.
When i see the query in the designer, the figures for STS are visible when selecting the ST rep. However, when viewing the report in preview, these figures are now omitted. I have cleared the report data cache which has had no effect.
If I attempt to rebuild the report, then I get the data as expected. Is there any way of recovering the existing report, or does this type of thing happen without a seemingly good reason?

Pivot shows single record field value that doesn't agree to tabualr data model value (source data) - misaligned?

I have found something I'm a little concerned about. Was trying to get a measure working and had it as a calc column previously so was comparing the 2 different outputs and checking for line by line differences. I picked a good one and investigated. calc column value was zero, measure value was £42. The calc column is correct. So i drilled into my measure to see what i could find. Alarmingly, I found that for a certain field called DocumentStatus the pivot showed it as "LIVE". But if I go to the table in visual studio and find that order the status is "COMPLETED". I have checked and rechecked. There is only 1 order on this table with the right DocumentNo. The pivot seems to think this order is LIVE but the source data definitely shows it as completed. What??? How can this happen?
So strictly speaking the measure is actually calculating correctly because it is seeing the order as live therefore picking the £42 value is correct for that formula. The calc column is correct because it is seeing the order as completed so picking zero as the final value is correct.
It is the fact that the record is being seen as both live and completed that is throwing me. I'm concerned to say the least. This feels like a bug. I have checked and have no other filters in play. I have checked other ways too - like filtering on all orders with a £42 value in a particular field - none of the have a LIVE status. Its almost like that field is misaligned in the background.
Has anyone ever seen this?
TIA
SSAS Tabular; SQL Server 2016, Visual Studio 2017
Edit 5 Jul:
Thanks for your comments. Unfortunately I cannot provide sample data due to strict confidentiality. I have provided 2 screen shots below, both showing the same record - (1) is the view from the excel pivot table that is connected to the ssas tabular data model (2) is the view of the table in Visual Studio (note how the value of the Accrued Income measure in this view is not the same as the AccruedIncome total in the excel pivot table)
I am wondering if this is to do with the way that I have deployed recent edits to the data model. Every time I make a change I am running the deploy & build commands so that I can refresh the excel reports to see if they are working as intended. What I don't know is when I do this am I deploying the metadata only or the metadata and the actual data (several hundred thousand rows on a dozen or so tables)? Is the issue here that the pivot is looking at an older set of data than the dataset visual studio is looking at? When I deploy & build do I then need to process the SSAS tabular object to update the data?
Also note how the DocumentStatus is different in the 2 views.
Excel pivot
Visual Studio

crystal reports missing columns

OK, first question here so go easy!
Let's start with some quick background - I have been working with Crystal almost daily for the past 15 years to so, so I like to think I am not too much of a dummy.
Today, I have stumbled across a problem I have never seen.
My source data is from SQL Server 2012 Standard.
I have created a view, nothing too complicated. It grabs PartNo and Description from an Inventory Main table. Then a few other columns from other related tables so I can see the data neatly in a single view, so stuff like carton qty (how many units go into 1 carton), height, length, depth.
Now, bear in mind I have done these kinds of views so many times in the past I couldn't even count.
Now, in Crystal Reports 2013, I connect to SQL via OLE using sa credentials, find my view. Pop over to the "Links" tab in the Database Expert, and my columns created from the related tables are not listed! Only PartNo and Description are visible.
I have scratching my head over this for the past few hours & the only thing I can put it down to is some kind of weird Microsoft update.
My SQL view results:
SQL view
What I see in Crystal
Database Expert, Links
the other way to test this is instead of a view or table just add a
command and select * from yourview
the only downside i think would be using sql expression from a command connection.
another option is to
To define the data type in the view... same with dates. does not like
to be converted otherwise will treat it as a string

ms access conditional formatting statement for recently updated data

Is there a way in MS access 2007 to create a conditional formatting rule that will highlight any field that has been updated in the past 7 days?
Currently I have a rule that highlights any information that is added in the previous week by field value is between Now()-7 and Now(). I'd like to open up the option to modifying old entries that week and have those highlighting as well.
Thanks.
EDIT:
Essentially the database dates back from approximately 6 months. It tracks progress on projects and employees enter task details in a subform of the project.
Date Employee Task
3/14/2012 David Talked to Remou *about ms-access*
8/1/2012 John Solved world hunger
** denotes updated information, and although the task happened on 3/14, I would like to display the changes with conditional formatting. Currently the only thing that would highlight is the 8/1 event.
By far the easiest way is to add an update date and a username. It won't give you a highlighted text difference, but it will be much easier to implement. As an aside, I always add a created timestamp, created user, updated timestamp and updated user to any user maintained tables. It saves so much trouble, because Access does not automatically add this information.

Resources