Hi there,
I have created a Calculated column on SharePoint List to calculate an Expiry Date for 4 years after a date which the user inputs. In the calculated column, I've used the following formula:
=DATE(YEAR([User Input Date])+4,MONTH([User Input Date]),DAY([User Input Date]))
Then, on Power Apps, I am attempting to show items that are expiring in the next 6 months by filtering the Expiry Date in a Gallery with the following formula:
Filter('Date source', 'Expiry Date' <= DateAdd( Today(), 180 ),!IsBlank('Expiry (Date'))
I am getting an error in the formula that says "Invalid argument type. Expecting a number value".
The date is returning as a string and is returning in this format as an example:
yyyy-mm-ddT08:00:00Z
Please help me understand how to get the date in the correct format so that I can use it in a Power Apps formula (i.e. the Gallery formula described above).