A row missing from company report (SSRS Dynamics) - reporting-services

I'd like advice for how to investigate this issue - I have a ticket open with Microsoft, but I haven't received a response from them yet. I have a Fetch/XML report that creates a profile of each company and their products, per year purchased. The report works well, but one employee found an error, and I can't explain it.
The report has a tablix that contains 3 columns "Product" "Year" and "Amount". "Year" is a calculated field: =year(Fields!ab_new_yearpurchased.Value). The field ab_new_yearplanted.Value actually contains a full date, but I'm just interested in the year.
The report is missing one of the products. If I change the purchased year in the product (from Feb. 1 2020 to Feb. 1 2019, the product appears on the report.)
If I create a brand new listing for the product, with the correct info, it won't appear on the report. If I change it to a 2019 date, it appears.
As far as I can tell, this error is only happening with one company.
I assumed the problem was the =year formula somehow, so I redid the report without the formula, just per purchase date. The row is also missing, but the total sum of the tablix includes the amount of the missing row.
Other than waiting for Microsoft to get back to me, can anyone recommend what else I can check here? Thank you.

Related

SSRS display one of two possible dates

I have a confirmation letter used to display one of two dates to a customer.
Date.Value is the purchase date of a product not tied to a finite inventory.
InventoryDate.Value is the date an activity is taking place, based on inventory availability.
Everything has a purchase date, but not everything has an inventory date. I would like the letter to display InventoryDate.Value if it has one, or display Date.Value if inventory date is null. I've played around with a bunch of variations in my code, but what I currently have is:
=iif( Fields!InventoryDate.Value="", Fields!Date.Value, Fields!InventoryDate.Value)
This is displaying Date.Value correctly, but returning #Error for any product with an Inventory Date. I am very new to SSRS/Reporting, so please keep any suggestions at a newb understanding level.
Working in MS Report Builder.
Thanks for your suggestions!
Depending on the data type of the fields, they can be blank or empty. With ="" you are only checking, if the field is blank.
try this:
=iif(IsNothing(Fields!InventoryDate.Value),Fields!Date.Value,Fields!InventoryDate.Value)

linking a subreport to a main report and have the data in the table match in SSRS

I am trying to take a report that has employee pay data for a specific date range. It works fine. My problem is I need to take and put in YTD data of hours worked and total paid from the beginning of the year to the ending date parameter. I created a subreport that gets me that data. What I am having trouble with is getting the subreport to return the data, per employee, in line with the main data. When I used Crystal Reports I could link the main table to the subreport without creating parameters. Not sure if there is an equivalent or a work around. Thanks in advance
Mike

Hide Control Key Group Value in SSRS

I have been using SSRS off and on since SQL Server 2008. There are a number of typical SSRS pitfalls and gotchas. One of these I need to go over with some one.
This should be pretty easy for an experienced SSRS resource / expert.
Let me explain the scenario
I have an Invoice Header and Detail. The header contains the Invoice number and InvID. The INVID is the link column for the Invoice detail or the FK in the Invoice detail. I guess that must be pretty obvious to all.
Now I need a simple report that displays Invoices and their items.
For some reasons I do not want to use the Invoice number to group the invoices in the report. I want to use the INVID.
But I want to hide the value of the INVID and display only the invoice number.
In other words the report should look something like follows
Invoice Number Date / Descriptio Qty Rate Tax Amount
11001 12/52016
Item No 1 10 10 2 102
Item No 2 20 10 2 202
So on and so forth....
I know this is very easy. Any inputs would be welcome...
Plus any good recommendations in terms of resources for refreshing my knowledge of SSRS
Regards
With SSRS you have the flexibility to set the grouping conditions independently of what is displayed in the table. As the others mentioned, add a Row Parent Group by INVID. The group properties should look like this:
The basic table layout should look something like this:
So the outer group will repeat for each individual, but display the invoice number. The inner group will repeat for each applicable item.
This should point you in the right direction. I'm not sure of a good resource to direct you to. For me, trial and error has been the most helpful.
All you need to do is bring InvId in in main dataset which you are using in main Tablix, on Tablix you can apply grouping on any field of dataset.

Can't get rid of duplicates in an Access sub report

I'm having an issue with a report containing a subreport in Access 2007. Let me preface this by saying that I didn't create this database, it was already in place and I've just kinda been put in the position of taking it over, and I don't know too much about access.
Basically I need my report to pull my customer history and payment history, group them based on the phone number, display all history below, and finally being sorted by received date.
What is happening though is I'm getting duplicates of all payment info.
Here's currently what is being output:
555-1212
john smith
123 whatever dr
hometown, usa 90210
sold date received date amount agentname
1/1/2013 1/4/2013 50 jack
6/1/2012 6/6/2012 25 jim
sold date received date amount agentname
1/1/2013 1/4/2013 50 jack
6/1/2012 6/6/2012 25 jim
So as you can see, it is grouping the sales correctly on the phone number, as shown by the phone number, name, and address only being displayed once. However for each instance that the subreport pulls, it shows all the info again. I need only one set of sale information to display per customer.
I have two tables, two queries, and two reports doing all of this.
One table contains customer information, the other contains sale information.
The queries simply pull the needed info.
My main report has the phone number, name, and address inside the header section. This is set to group on phone number, and to keep the group together on one page.
My subreport contains all the sale info inside the detail section. This is set to sort by received date.
I've tried a ton of combinations of grouping, sorting, and moving the subreport in and out of the header and detail sections but to no avail. One way or another there's always duplicates and I can't figure out how to sort the whole shebang by received date when all is said and done. Any help would be greatly appreciated!
Create a phone number group section and move the top line with phone number, name, and address AND the sales information subreport inside this new group header. Then, minimize the detail section.
From your example, John Smith has two sales info records. Therefore, the sub report placed in the detail section will repeat twice for its two appearances in the main report. Recall any item in detail section will repeat for the number in the recordsource. Yet positioning items in a distinct group section will remove the duplication.

MSCRM 2011 Total record count by day

One of our team who maintains subscriber content in CRM requested a report that displays total number of active records, email subscriber and email unsubscribers. I can create a report that shows current total for all three subject above. But can't show the historical details.
For example: Active used count for yesterday was 400K then today 403K and tomorrow 4007K, I want to produce a graph that shows the climbing of these numbers by day.
My first thought is to create new entity that stores all these details or a new table in sql and use that in reporting with SSRS.
I want to know if you guys have ever come across this and if so what you think is the best solution?
try once Group by date (Or)
Create a new Entity and write a workflow that runs every day and stores all the counts date wise.
fetch the custom entity data into the report.