Checkboxes and dates [duplicate] - date

This question already has answers here:
How to stop / freeze / pause volatile RAND / RANDBETWEEN / RANDARRAY?
(2 answers)
Closed 4 months ago.
I have columns O and S with checkboxes that I want to have populated dates in columns P and T. Currently using a formula but it's updating to today and I need the date to be the day the checkbox was checked.

use in T2:
=LAMBDA(x; x)(IF(S2; TODAY(); ))
and drag down/up as you need. consequently, you could also use NOW instead of TODAY if you wish so

Related

How to get network days by subtracting from current date and older date on Jasper soft studio? [duplicate]

This question already has answers here:
Calculating Time and Date difference
(1 answer)
How to create a single expression displaying time difference between two Date's as years, months, days, hours, minutes, seconds
(1 answer)
Closed 2 years ago.
I need to find net workdays by subtracting from older date from today ?
Ex:Today Date is 7/14/2020 and older date is some 7/14/2019.
Expected result = 365.
The expression is extract(days from now() - <older date column>).
My recommendation is to have the database server perform this calculation for you by adding the expression to the select list in your query. If you prefer to do this with scripting after Jaspersoft has retrieved the data, then I cannot help you there.

MS Access - Calculate end date based on the next start date [duplicate]

This question already has answers here:
How to get a value from previous result row of a SELECT statement?
(6 answers)
HOW TO SELECT PREVIOUS ROW VALUE? [duplicate]
(4 answers)
Closed 3 years ago.
I have a fact table where each key has a status (active, inactive,deleted,...) running from some start date.
key-status-start
01-active-01/01/2019
01-inactive-03/01/2019
02-inactive-01/01/2019
02-active-10/01/2019
02-inactive-15/01/2019
02-deleted-17/01/2019
Now, I need to add another column with an End Date. Is there a way for it to be calculated automatically based on the start date of the next status for that same key?
The desired result would look like this:
01-active-01/01/2019-02/01/2019
01-inactive-03/01/2019-n/a
02-inactive-01/01/2019-09/01/2019
02-active-10/01/2019-14/01/2019
02-inactive-15/01/2019-16/01/2019
02-deleted-17/01/2019-n/a

How to get only the first 6 months action of all my records

I'm pretty new in Tableau. I have looked at the forum already and the answered suggested. But I'm not quite sure it match my question.
I have a bunch of records. This is about registration for a sport lesson depending on time. All of them have a start date and and some of them a finish date. The other never finish (They continue until date T with T = now).
My goal is to compare only the first 6 months of all my records, I think there are 50 of them, like the evolution during this period of time. So, for some the start date would be in January 2009, for some other, it would be in May 2016, etc.
As field provided, I have the start date and the number of person that have subscribed those lesson through time.
So, do you if there is any to achieve this goal? Is there enough detail for you to understand what I am saying ?
Thx to you guys !!
EDIT
You can find enclosed a screenshot of the result that I already have.
number of registration for all lesson through time
I'm not sure to be clear, what I try to do is to compare the first 6 months only of each courses. So the evolution of the first 6 months of this course compare to the evolution of the first 6 months of this other course and so on :)
If I understand your question correctly you are wanting to show only the first six months of your data but you want this by each category.
I am assumuming that by definition this means 6 months from the first record in your data for each category.
In order to achieve this I would create a true/false flag using a level of detail expression. As you are new to tableau I would suggest you do some reading on this but basically you can force a calculation to be at a certain level of the data rather than at the row level. You use this to find the minimum date in the table and then use a date diff to return true if the actual date field is within 6 months of this.
Create a calculated field as follows:
[date] <= DATEADD('month', 6, { FIXED [category] :min([date])})
Then drag this onto your filters pane and select "TRUE". This should give you only the first six months of records for each category.
Let me know if you need anything else.

How to change a field with a date with AutoIt? [duplicate]

This question already has an answer here:
Clicking Field with AutoIt in an ERP program
(1 answer)
Closed 2 years ago.
I am trying to automate a report with AutoIt and every day I have to go in and change 2 fields to today's date. Is there a way to do that?
Explain your question further
The thing i found was _DateAdd function
https://www.autoitscript.com/autoit3/docs/libfunctions/_DateAdd.htm
You can use the _NowDate() function. It will take the current date from your computer.
You can read its Documentation on: https://www.autoitscript.com/autoit3/docs/libfunctions/_NowDate.htm

PostgreSQL, count of rows between min and max dates [duplicate]

This question already has an answer here:
PostgreSQL, min, max and count of dates in range
(1 answer)
Closed 8 years ago.
I am getting min and max dates from text column with query which good people helped me to get there like this :
SELECT max(to_date(nullif(mydatetxt,''), 'DD.MM.YYYY')),
min(to_date(nullif(mydatetxt,''), 'DD.MM.YYYY'))
FROM table_name;
How can I get COUNT of all matched rows between and including min and max dates (written in text column)?
All you really need to do is:
SELECT count(*), max(to_date(nullif(mydatetxt,''), 'DD.MM.YYYY')), min(to_date(nullif(mydatetxt,''), 'DD.MM.YYYY'))
FROM table_name;
Or maybe I misunderstood. Really, you should, if at all possible, move the date field to a date type. If you have to handle garbage input, use a view and an update trigger to do that.