Footable Filtering Rows - Getting Count of Results - footable

Is there a way to get the footable results of the filter function, such as number of rows showing?

I had the same question a few weeks ago. You can accomplish the following by doing this:
$('.footable tbody tr:not(.footable-filtered)').length

Related

sap.ui.table.Table and count of visible rows [duplicate]

This question already has answers here:
Live Update the Number of Items
(2 answers)
Closed 2 years ago.
i habe a sap.ui.table.Table that uses a JON data model. a filter is applied to the table to 'hide' unwanted rows. how can i get a count if how many are left showing? thanks. pas.
Add a updateFinished handler to your table
<Table updateFinished="onTableUpdateFinished" ... >
and then you can get the row number in the controller like this:
onTableUpdateFinished: function (oEvent) {
var iRows = oEvent.getSource().getBinding("items").getLength();
}

How to write MDX formula for a filter

I am working on a report in BI that includes 2 datasets. The screenshot below is of DataSet2 where I am trying to write a MDX filter expression for the query. What is the formula so that the query only shows rows from the past 2 months from today. I tried a few different formulas…[GamingDay].[Date] > CDate(DateAdd(‘m’,-2,Now())) and it returns an error. What is the correct formula to do this?
enter image description here
You need to use double quotes to resolve the issue. Take a look at the sample below
with member measures.t
as
CDate(
DateAdd("m",-2,Now())
)
select
{[Measures].[Internet Sales Amount],measures.t }
on columns,
[Product].[Category].[Category]
on rows
from
[Adventure Works]
Result

How to set Fixed Rows of Tablix in SSRS

How to do the tablix fix rows? I need to fix the report to maximum 5 rows, if record more than 5 rows will not show . If records is only 3 record, first,second & third rows will place the data and 4 & 5 rows will leave it blank.
Ideally you should achieve it in SQL query or stored proc.
However if you want to achieve it in RDL then you have to use RowNumber function in expression.Create a Row group and then restrict data set.Use expression =CEILING(RowNumber(Nothing)/5)
Please have a look at below link for your reference.
http://www.sqlchick.com/entries/2010/9/11/displaying-fixed-number-of-rows-per-ssrs-report-page.html

Want to create 2 columns with different period parameters from the same data in SSRS

I want to create a monthly report, calculating the % from the previous 2 month average from the previous 12 months average. Basically I want to see which shops have dropped in sales in the previous 2 months, and hopefully only show the shops that have decreased 20% in sales.
So i believe the columns need to be like this
Shop|Products|Avg of 12 months|Avg of 2 months| %
Since i have many entries for the sales, i also need to sum the previous 12 months and then average it... as well as sum the previous 2 months and average it
I have thought of some ways to do it, but it didnt seem to work and seems all too complicated and complex.
Im hoping if there is a simpler solution to this? Do i need to use pivot table?
I'm using PostGres 9.1 on Visual Studio 10
Thanks a bunch
When something seems too complicated to resolve with a single query, I create and populate a DataTable runtime and pass it to ReportViewer.
In this case you can:
create a DataTable with Shop and Product as a PK (if you want print the report for a period of months you can also add Month as PK). The other 2 columns will be Avg12Months and Avg2Months
insert a record for each combination of Shop/Product (and eventually Month)
for each record Shop/Product calculate and save the results for Avg12Months and Avg2Months
pass your DataTable to ReportViewer
use a single Tablix to display the results (sort, grouping and other operations can be done in the Tablix)
Some passages can be combined in order to speed up the process.

Aggregate not populating chart correctly in SSRS

Below, I've attached a sample of my data as well as a sample of the chart output. I want to aggregate the data and include one row with this number; however, SSRS is just showing multiple of the same value.
In the example below, you'll notice there are 8 rows in Unit 1 and 8 rows in Unit 2, a
total of 13. How can I get Unit 1 to have one row which shows 8 and one row in Unit 2 to show 5? Currently, the expression is =COUNT(Fields!SubID.Value, "DataSet1").
I've also tried adding in a column full of the number 1 which I could use to Sum on, but that produced the same results.
Originally I was doing this all in SQL; that is, producing the exact output I want in SQL and then charting in SSRS. However, this is no longer a viable solution as the end user would like to be able to drill down into the details of the report. I do imagine, if there is no easy way to do this (which I feel like there has to be), that I could write two queries, having one show the report and the other show the details.
Thanks.
The second parameter of your count expression is the problem.
Don't use this:
=COUNT(Fields!SubID.Value, "DataSet1")
Try something like this instead:
=COUNT(Fields!SubID.Value, "UnitGroupName")
The group name should match what is shown in BIDS as the name you've given the grouping, such as under Row Groups.