We have a Jet Report reading a Dynamics NAV 2013R2 Sales Invoice Line table. We have created it on our system with Start Date and End Date options with a Lookup, =NL("Lookup","Sales Invoice Line","Posting Date"). This works as expected and displays the appropriate list of dates from our test server. Test Server data is a couple years old and the last date is in year 2018.
When we upload the Jet Report to the client and run it, the lookup dates are not refreshed, it displays the same list of dates as our test server (e.g. the last date displayed is in year 2018). How can we force the Lookup to refresh on the client side so it displays the full list of dates?
I have tried uploading the report in design mode and also in report mode. Neither results in the correct list of Dates being displayed.
It turns out there is a limit to the number of rows displayed. I added a filter to the Lookup to sort by Date descending and the latest dates showed up as expected.
Related
I am having an issue with showing last value.
I have a source table, where is every single day (once) and for each day I have for item 1 total amount in stock.
I put it in pivot table. Column for total item in stock, for each day in month July for example, shows me balance for every day. When I group the month, it shows cumulative amount - which is wrong. I need to show last value.
Therefore I searched for a solution, I found on webpage ExcelJet this.
But when I tried it, for some reason, the date 31/07/2020 shows value 0 on top first, and on top second place the correct value for the last day of month.
Does anyone know why that happens? In source data there is 31/7/2020 with only 9.546.
You are applying the filter in the wrong field. You must apply it to your AMOUNT field, and you are applying it to your ITEM field (the field that holds the value VEL).
This is happening because you are working in the compact view of Pivot Table, and I think it's easier to work in tabular design.
Design the layout and format of a PivotTable
My Pivot Table is like this:
As you can see, ITEM and AMOUNT field are in the rows section. And DATE field in the Values section, set to MAX DATE and renamed as LATEST.
The filter is applied in the field AMOUNT.
I know what you mean, but actually the filter is applied on the correct field/row. See the prtscrn.
For the references, I attached the source table too.
btw, if I tried filtered out the column Note it still doesn't work properly
I am trying to create an ageing report from data in Power Query. I'm able to do the following if I pull the data into an Excel table:
Age Column =(TODAY()-[#[Request Date]])
Ageing buckets =LOOKUP(J19372,{-60,2.1,5.1,7.1},{"0-2","2+","5+","7+"})
However every time I refresh the data in the table from the query, I then need to copy the formulas down. This is fine for me but I want it to be automatic for others that I send the file to.
Is there a way to do those calculations in PowerQuery?
Sure you can. Except for retrieving today's date via Power Query, you need to refresh table. Check one solution for banding here at Ken Puls blog: http://www.excelguru.ca/blog/2016/02/29/creating-a-banding-function-in-power-query/
I am having a huge database of records and I'm finding it to be a nightmare getting to analyse the data.
Objective:
Group my data by Country of Purchase (rows), by Years/Months (rows), by Product (columns) with the Sum of Paid amount being the value.
Let me explain:
Below is a sample excerpt from my table.
And here is the result that I am looking for that I was able to achieve using an Excel Pivot table:
Why use MS Access:
My table has over 3 million records stored across many workbooks, and Excel has a limit of 1m in each sheet. Also Excel crashes more often than not when loading >500k of data.
I installed an older version of MS Access (2010) which has pivot tables option but it was very slow and did not allow me to group correctly. I then tried using a combination of queries and reports to arrive to my result to no avail.
Any help will be very welcome :)
How about doing the aggregation in Access and then the pivot in Excel?
SELECT country, year, month, product, sum(paid)
FROM myTable
GROUP BY country, year, month, product
(year and month based on access functions for date manipulation... alternatively, you could use is as a date to keep date functionality in the pivot - just make it the first of the relevant month)
Then use this as the source of the pivot table. The pivot table then basically just does the formatting - which it can hopefully do quickly enough
Working in Cognos Report Studio 10.2.1. I have two query items. First query item is the base table which results in some million records. Second query item is coming from a different table. I need to LEFT OUTER JOIN the first query item with other. In the third query item post the join, I am filtering on a date column which is in formatYYYYMM to give me records falling under 201406 i.e the current Month and Year. This is the common column in both the table apart from AcctNo which is used to join both the tables. The problem is, when I try to view Tabular datathe report takes forever to run. After waiting patiently for 30 mins, I just have to cancel the report. When I add the same filter criteria to the 1st query item on the date column and then view the third query item, it gives me the output. But in the long run, I have to join multiple tables with this base table and in one of the table the filter criteria needs to give output for two months. I am converting a SAS code to Cognos, In SAS code, there is no filter on the base table and even then the join query takes few seconds to run.
My question is: Is there any way to improve the performance of the query so that it runs and more importantly runs in less time? Pl note: Modelling my query in FM is not an option in this case.
I was able to get this resolved myself after many trial and errors.
What I did is created a copy of 1st Query item, and filtered 1st query item with current month and year and the for the copy of 1st query item added a filter for two months. That way I was able to run my query and get the desired results.
Though this is a rare case scenario, hope it helps someone else.
I created a Date and Time column in a Sharepoint list called EventDate. According to Microsoft documentation the Date and Time column maps to the System.DateTime type.
Now I'm seeing an error message when I try to insert the following date into that column:
Date: 1/1/1800
Error message:
"Invalid date/time value.
A date/time field contains invalid data. Please check the value and try again."
I also tried to use set DateTime.MinValue and I receive the same error message. But if I insert a more recent date like 1/1/1900 it works fine.
Does Sharepoint have a limitation of the minimum value of a Date and Time field?
I found out that if you try to insert the value 1/1/1800 in a Sharepoint Date and Time field manually (using Sharepoint forms) you receive this error:
"You must specify a valid date within the range of 1/1/1900 and 12/31/8900."
Therefore, Sharepoint only accepts values between 1/1/1900 and 12/31/8900.
There is no obvious reason as to why SharePoint limits the storage of the datetime datatype as it does now.
In SQL Server, the smalldatetime columns allows date in the range from 1/1/1900 - 6/6/2079 and the datetime columns are ranged 1/1/1753 - 12/31/9999
So there's no range from 1/1/1900 - 12/31/8900 and I haven't got the slightest idea why the limitation exists.
To make things even worse: SQL SErver 2008 has a smalldatetime2 and datetime2 type (the really just added a 2 to the name :/) wich allows any date (1/1/0000 - 12/31/9999) but even SharePoint 2010 on a SQL 2008 has the same limit
And Kit: using a single line of text is a very poor substitu, as there is no way to validate the values entered by the user
You could try creating a custom field to store the datetime value.
see http://msdn.microsoft.com/en-us/library/gg132914.aspx