Get last modified date of the view - postgresql

I am building a view, to which i need to attach a column which would be the last modified date for the query/view.
I have tried to hardcode the value in the view itself but that is not acceptable as we need to attach a system generated date for this
Any ideas how to achieve this?

Related

QLIK 101: I have a data/field with format DD/MM/YYYY. Need to creat bar chart with age range

First time I am using qlik sense. None of the videos that I have watch have help me so far.
I have data/field name 'inscription' with date format dd/mm/yyyy. I need to set age range from 18y to 90y, in range of 10y. For example from 18-28, 28-38...
I have no idea how to do this. I need the formula to do it and also where do I put this formula (its my first time using this tool).
Do I create a new dimension on the left side of the app under custom objects?
Do I put the formula in the right side where I set the dimension(bars) and measures(height)? or under aperance?
I am using qlik sense desktop feb 2019. 13.9.1
Hi I don't see your data so:
1) be sure that your date field is implemented as date by qlikview (you can test it in model viewer) if not please load it as date in load script and you can also calculate current age:
LOAD
(...)
Date#(inscription,'DD/MM/YYY') as inscription,
Today() - Date#(inscription,'DD/MM/YYY') as age // you can add Floor() or Round() function to load it as integer
(...)
Next in sheet please add histogram to display age in buckets. One way is to set dimension manually (it is like this in QlikView):
class( age, 10 )
In QlikSense is easier just drag and drop "histogram" from left, choose "age" as dimensions and customize it: see here https://www.youtube.com/watch?v=p97tIzZeZeQ
If you still have problems please let me know so I will update post. You can share also more data - model viewer screenshot, loading script or even whole qvf file from QlikSense. There are also other ways to achieve that but it depends on your data. Generally fastest is to calculate age in loading script as in above example.

Invalid Date error when entering record on Sharepoint list Datasheet view

I have a list on Sharepoint 2013. I've often use the Edit this list link to make bulk changes to the list in datasheet view with no problem. Last week I had a bunch of new records I needed to add so decided bulk copy and paste from Excel would be best. However, I get the error "Invalid date/time value. A date/time field contains invalid data. Please check the value and try again." The field is Date/Time with Date only display. The format I copied in was mm/dd/yyyy, which is how it's displayed (I realize there's a difference between formatting and display). In the past I've used this format to update dates with no problem. I've tried manually changing the date to other formats like yyyy/mm/dd (or with dashes -), and using the date picker and nothing works. I can add a new item using the form and no problem with the date. It's only happening in datasheet view.
I have 70+ records to add and would rather not have to open a new form for each one (I'm only adding info to 7 of the fields, and I first only pasted a couple records to make sure there were no issues). Are there any recent known issues about date fields in datasheet view? It's a pretty straightforward thing, no calculations are being used, I'm not trying to connect to another service, or use outlying dates (dates are all 2017) so I'm perplexed why this is an issue now and not before. Any thoughts on this would be appreciated.
Found the issue. I had another date field I was not using in that view that for some reason the default value had been set to Calculated field with a value of 1/1/1111. No idea how that got there but I removed that and set the default value to None and now the problem is gone. I found it by creating a new view with every date field in the list and systematically copying a date into each field (in bulk edit) and trying to save after each one until it saved. Then I checked the settings for the field that I was able to save with.

Date Picker not displaying

I am creating a MS Access 2016 database. In one table it has two date fields and one time field. In the table format, both the date fields are set up with the "show date picker" property set to "for dates". Also, on the forms where these two fields are used, the fields are both set to "for date". The problem is that the date picker is only showing for one, although all properties are identical, other than field name of course. I've adjusted page sizes and field sizes, but nothing seems to help. Has anyone seen this problem before? Any ideas what I can do?
Whoops! I was mistaken when I said that all the properties for the two date fields were identical. The one field that wasn't showing the date picker had an input mask. As soon as I removed that, the date picker appeared. Sorry for wasting anyone's time.
Date pickers and input masks are mutually exclusive. I removed the input mask and the date picker showed up.

Excel - Insert "day" on a cell and format it to date with current month and year

I am working on a home accounting template (and could not find any good one :-/), so I am creating one for each month. Both in my expenses and my incomes, I would like to have a date column where I just have to insert the "day" (e.g.: 22) and it automatically fills the rest with the current month and year (or I could set them in another cell).
For example: 22 + ENTER would return: 22/12/2014
If I do this, I automatically get a default date: 22/01/1900
I do not know if it is possible to change this defaul date depending on the current one or any other value.
I have tried with a different strategy: if the amount column is not empty, fill in with today's date: =IF(A3="";"";TODAY())
The problem is that I do not always register today's expenses, so I need to change it manually. I was just wondering if this is possible and there is a better way (maybe a macro?).
You need Excel to modify the cell contents after you press ENTER. The only option seems to be a Macro using the Worksheet_Change event.
Please check out this other question. I think that will help.
This can be achieved with simple formatting and use of controls that are available in Excel. VBA will give you drastically more flexibility, however the request above can be accomplished without learning VBA.
I have included a sample file here.
Steps to recreate:
Create a range of months. I created a range including the current month through 12/2014
Insert a combo box from the developer tab. Right click and select Format Control. On the Control tab, input the range you just created and then select a "linked cell". This will insert an integer to indicate which item you picked in the list, starting at 1.
Use the attached formula to add the DAY that you enter in the first column and VLOOKUP the month and year from the value chosen in the combo box.
Enhancements: I used conditional formatting to change the text color of the days you enter to WHITE. This way you won't see them. I also included some checking in the VLOOKUP formula: the day you enter must be a number and must be non-blank for a date to populate.

Using Crystal Reports year to date

I am relatively new to using Crystal Reports. I am pulling the correct information from my database however I need to only pull the information from the beginning of the month to the current date, i.e. 09/01/2013 - 09/23/2013. Could anyone give me a snipit of code on how that would look.
Much appreciated.
The best way is you need to filter the data before it is populated on reports i.e. filtering the query itself. The other option is to create new parameter for the selected field and passing the value on runtime.
http://www.codeproject.com/Articles/205398/Crystal-Report-Filtering-Using-Selection-Parameter
In below figure you can add the records selection on the required field and add the condition similarly