Add empty rows to tablix dynamically in SSRS - sql-server

I would like to ask around for help. How do we add empty rows to tablix dynamically in SSRS, as in I wrap the rows(including the totals) inside the list. And I want to have fixed table layout in every page mostly just like this: But, It has multiple set of total rows(sub total and grand total at the very end).
Have been racking my brain quite a long time, still no answer yet. Any workaround how could I get this table layout in SSRS Designing level???
I prefer not to mess up with SQL data-set. Because I want it dynamic.
Any idea?
Following is my previous similar question that I have able to solved :
SSRS Fixed Tablix/ add blank rows below
According to bot's suggestion, I could make it work. But this time around, case is a bit complicated as the tablix is not having only one data-row, now it has 3 rows: one data row, one subtotal and grand total.
Pls help me out. Thank you all.

Related

Excel: "Dynamic" CountIfs, MinIfs, PercentileIfs

I'm trying to make my spreadsheet as 'dynamic' as possible as I need to create a number of tables with different variables that influence the data in them... the variable columns will be the same for every table created, but the data within the columns may vary.
I noticed that wild cards in the cells themselves are helpful to a point. Where there's a SUMIF, COUNTIF, these are awesome for solving my problem... but if it's an embedded IF statement, the logical test can't equal the cell with the wildcard in without causing errors.
Ultimately I will have four data tabs and an abundance of different tables based on the variables. I would love to do this in pivot tables that would absolve me of this issue, however I can't figure out how to do percentiles in the pivots :)
For the Level column to calculate properly, I need to change the <> to = manually... which I am hoping to avoid if possible given the number of these I need to create

Is it possible to use LookupSet/Lookup with Running Value in SSRS

This is my first question on StackOverflow so apologies if there is not enough appropriate information.
Rather than having four different tables that I try to position 'just so' so that they look like one table, I was hoping to have all of my data in one visible table and hide the rest.
To do this I was trying to use LookupSet/Lookup with Running Value (I need a cumulative figure for each fortnight from a start date).
I have used the following code which supplies me with figures in the table - however the figures seem to be nearly double what they actually are.
=Lookup(Fields!StartFortnightDate.Value, Fields!StartFortnightDate.Value,
Fields!RowIdentifier.Value, "KPI004")
Is it possible to use Lookup with RunningValue? It won't let me use ReportItems either its obviously only pulling from the first box and therefore is just repeating the first figure again and again.
Any help, guidance, or even a simple "it's not possible" would be appreciated.
Edited to add more information as suggested:
It's difficult to add example data without worrying about data protection etc.
Report design is currently:
ReportDesign
Each table has it's own dataset - I'm trying to get them all into one table.
Lets say the first dataset is number of cars sold in each fortnight.
The second dataset (table) is number of meetings held.
The third dataset is number of days weather was sunny/cloudy/rainy etc.
(This obviously isn't what the datasets are, but I'm trying to show that they don't actually relate to each other that much and therefore can't all be in the same script)
All datasets have a table of the fortnightly dates within that quarter, my hope was to get one table that showed the cumulative figures of each item even though they're not in the same dataset - the tables are all grouped by the StartOfFortnightDate.
The script =RunningValue(Fields!NumberOfFordCarsSold.Value, Count, Nothing) and similar works fine in the separate tables, however if I add a row to the top table and try to use RunningValue with Lookup it doesn't work.
When I used the script mentioned at the top (Lookup script) I get inflated figures (top row of this image) compared to the expected figures (bottom row of the image): IncorrectAndCorrectFigures
Apologies if this doesn't make sense, it's likely that my complete confusion in trying to find the answer is coming across in the question.
If the resulting datasets are all similar then why can you not combine them?
From the output they seem to be just Indicator & Date.
Add an extra column to indicate which set of data each row belongs to (Cars Meetings etc), this might help with grouping rows in the report.

DAX - formula for lost customers

Been using Javier Guillens formula for Lost Customers and it's working great. Problem is though I want customers to be considered lost after 3 months of no transactions rather than one. How would I do that?
Also, another problem is when I try to make it a pivot table I can see the number of lost customers for each month but I cant see which customers. Because when I try to put CustomerID as rows so I can see each customerID per month nothing happens. There is an expand icon but when I click it nothing happens. Do you happen to know why?
Thanks
This is pretty much the best source for all sorts of new/returning/lost customer measures, with full explanations and templates. Their lost customer measure can be used with arbitrary periods.

How to add Sub-Reports in Multi-Page SRSS Reports?

We are using SQL Server Reporting Services for our reports. We have a report that is comprised of several sub reports. For simplicity, let's say cars. And each car has it's own part list. A one-to-many relationship.
So on the Car report, there's all the car information - and a sub-report, the part list. This works fine for a single car as there is a single Car.ID, which can be passed as a parameter to filter the Part List by the specific car.
But, if there's several cars specified to the report, we want each car to be on it's own page. with it's own part list.
I've had a look around an am struggling to figure it out. The solution I'm looking at involves putting everything in a List control, adding a page break after each record. Then adding a row number to each item in the dataset, then matching page number and the row number up for the sub-report.
I figure there's got to be a simpler way to do this, that I've overlooked. Or if there isn't, how can I match up the Page Number and Row Number? I've tried using the Lookup function --
=Lookup(=Fields!Page.Value, =Globals!PageNumber, =Fields!ID.Value, "DataSet1")
However, this returns an error that the Globals!PageNumber variable is only available to the page header/footer sections.
Any help is greatly appreciated.
Never mind, I was being an idiot and completely over complicating it.
If anyone else find it useful, here's the steps.
Create your sub-reports, specifying the ID of the record as a parameter.
Create your main, encapsulating report.
Add a list control to the page, go to the Tablix properties and add a page break.
Add your sub-reports to the list control
Specify the value to the identity parameter, by using the fields collection - in this case:
=Fields!ID.Value
Test report, then sit back and don't think about how complicated I tried to make it.

ssrs interactive sorting

Okay. two questions on interactive sorting:
1. How to sort on multiple columns without holding SHIFT key?(like this: http://lukehayler.com/2011/04/sorting-on-multiple-columns-in-ssrs/)
2. How do I cancel sorting? So, usually on most web, first click on sorting arrows icon sorts by ascending, second click sorts by descending, third click cancels sorting. With SSRS I only observe first two options. Is there a way to cancel column sorting?
1) Right now that is just how the report viewer works, as others have said you could write your own controll to view the reports but this may not be an option due to time or skill level constraints.
Other people have written their own custom report viewer controls however I have always stuck to the MS version so I havent got much experience with these, and I would suspect any good ones would be a paid solution.
2) I would love this option myself, again you cant reset the sorting in this way as SSRS does not keep a record of the initial 'unordered' state of the data.
The only options you really have here are to reload your data with its original parameters or as nathan pointed out include a column that contains the starting sort order, however users may not like this as it is adding data which is not really relevant to the report data.
1) There is no way to do this with the standard report viewer control
2) There is no way to "cancel" sorting. However assuming the data was sorted into some order originally then you could include a column on the report that represents the original sort order (if it's complex ordering then you could represent this with a sequence number). This would allow the user to sort on that column to return to the original order of the report.

Resources