SSRS Pass Total Number of Rows from Master to Subreport - visual-studio-2019

I have an SSRS report that contains a master page with a table, which passes the row data from the table to a subreport.
I would like to also pass the total number of rows contained in the table to the subreport.
I have tried setting a variable on the master page using both:
=CountRows("Assessment")
and
=Max(Fields!ROWNUM.Value, "Assessment")
but when I then try to pass the variable to the subreport I get the error:
Error [rsCyclicExpressionInReportVariable] The Variable(TOTAL_ROWS) expression for the report contains a direct or indirect reference to itself. Loops in variable value expressions are not allowed.
If I try to put either of those expressions into the expression of the parameter directly (Subreport Properties -> Parameters, then fx) for the subreport, I get the error:
Exception of type 'Microsoft.Reporting.Services.ReportProcessing+DataCacheUnavailableException' was thrown
any idea how I get the total number of rows passed to the subreport?

So passing
=Max(Fields!ROWNUM.Value, "Assessment")
as the expression for a parameter does work, but if you are getting 'DataCacheUnavailableException' you need to delete the file "MasterFileName".rdl.data to essentially clear the report data cache.

Related

PowerAutomate : Get max columnvalue From dataverse table

I have a Dataverse table named my_sample_table.
Inside the table I have a column named my_sample_column of type integer whose max value should be returned. Am trying to achieve this by using the List rows action provided with PowerAutomate.
Is there a filter query that can be written on the Filter rows property ? similar to what we use with SQL : max(columnname)
Or any other queries that can be included in the List rows action which will return the same result.
I know that I can iterate through the column values to get the max value using an expresion or by sorting it and getting the topmost one. But I was wondering whether there are any direct approach to it.
I would try and use a max aggregate for this column in a Fetch Xml query:
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-fetchxml-aggregation#max

Excel Power Query: Passing parameter to oDataFeed URL throws error

When a direct number for the TestPlanID is given it works.
When passing the value from sheet to a Query and then appending it to URL throws an error.
Expression.Error: We cannot apply operator & to types Text and Number.
Details:
Operator=&
Left=https://analytics.dev.azure.com/OrgName/ProjName/_odata/v3.0-preview/TestPoints?$apply=filter((TestSuite/TestPlanId eq
Right=39128
Can you try
eq"""&varTPID&"""
If value of varTPID is an integer/decimal, can you change the first line in power query to varTPID=Text.From(varTestPlanID) and then use eq"""&varTPID&"""
Also I think, TestPoints?"&"$apply needs to be changed to TestPoints?$apply

How to generate dynamic values in fitnesse

I have to insert incremental values in a column of the table using Fitnesse. The incremental value I'll get from a stored procedure which returns the last inserted value. So I have to increment the value and store it.
For example: I'll get a value from the stored procedure output. And I have to increment the value by 1 and insert into the table.
Any ideas?
Output from stored procedure is like : ACRDE0001 (PK)
Value to store in table : ACRDE0002, ACRDE0003, .....
Expected output
!|insert|table1|
|col1|col2|col3|
|ACRDE0001|abc|def|
|ACRDE0002|abc|def|
|ACRDE0003|abc|def|
.
.
.
.
As far as I'm aware the only way to change (e.g. increment) a value you get during your test is by writing some code in a fixture. There is a pull request to allow more dynamic Slim expression directly in the wiki, but that has not been merged (let alone released) yet.
Your questions suggests that the value is something you get from a database and that you then want to send back the generated/incremented value with new records you insert. In that case I wonder whether the increment is actually that useful to actually have in your wiki (your test case is not about the generated values, is it?).
Maybe your fixture could just retrieve the initial value (or have it supplied as constructor value) and the fixture could generate the a new value for each row and send them to the database.

App Inventor Fusion Table Column calling

I developed an app based on App Inventor and Fusion Tables. When I want to update total money by adding some money to already existing money it is giving some error.
When I use SELECT command to get information from fusion table it is taking then number with column Name. When i am trying to add both of them it is giving following error.
Error message
The result from a fusiontable includes always the header row...
from your example SELECT statement the result is
TotalPaid
5000
Obviously to add any value to that result will result in an error, because you only can add numeric values...
You first have to extract the value (in your example 5000) from the result. Convert the result into a list using the split block, just split at \n (new value) to get a list, then select the 2nd item using the select list item block.
Note: to be able to update something in a table, you need the ROWID, see also the SQL Reference Documentation of the Fusion Tables API.
For UPDATE statements the first step to be done is to get the ROWID of the row to be updated with a SELECT statement. The second step is to do the UPDATE.

What Output will Return the Fetch request if NSPredicate Should Fail

I have two tables with some values .These two tables have one onetoone relations between them.In my first tables contains 70 values and Second table contains 20 values.I Created one fetch request for fetch values from 2nd table based on the condition.These condition is set by using predicate.I added the object return from the request execution in to one array.In some condition the Predicate will became fail in this situation what output will return by the fetch request.How i compare all array object with one class instance.
If nothing matches the predicate you will get an empty array back (which is logged as ()). If there is something wrong with the fetch / predicate then you will get an error (or exception).
You can use the containsObject: method on the array to check if a specific instance is in the list of returned objects.

Resources