PowerApps Filter Gallery with DatePicker - filter

Trying to add a filter to a gallery based on datepicker from a sql datasource. The date format is YYYY-mm-dd.
When I add a filter to the a SQL datasource gallery and I add a datepicker to allow me to filter the records on date. SQL displays the date as YYYY-MM-dd. Datepicker is showing date as MM\dd\YYYY. When I enter a date that I know I have data for, no data is display. I don't get an error in the formula.
Formula for Gallery.items:
Filter(
vw_Expenses,
Date = dp_ViewExpensesDateFilter.SelectedDate
)
Nothing is displayed. Is it because SQL displays dates as YYYY-MM-dd? If so, how do I fix this? If not, what is the recommended change to get the filter working on my gallery?

Check the data type on the SQL column. It could be text or DATE, etc.
The DatePicker control in PowerApps is of Date type:
Notice the , 12:00:00 AM appended
By rapping it in the Text() Function, you can change it to Text:
You need to match up the DataSource (SQL) and the PowerApps data types to get the Filter function to work.

Related

Is it possible to display dates in power query as MMM/YY and keep it as a date format instead of text?

My problem is that I generated a pivot chart that is showing the axis values as DD/MM/YYYY. I changed the date format for the relevant column in the power pivot manager to MMM/YY and it looks fine in there, it's displayed correctly in the pivot table as well, but not on the chart axis. I'm guessing it's because in the main query the format is stuck as DD/MM/YYYY. I also tried to format the axis to a number & date in the chart, but it doesn't react. Can anyone help please?
pivot table
pivot chart
pivot chart format settings

Is there a way to prevent input if today's date is the same or later than the date in an adjacent cell?

Using Google Sheets, is there a way to prevent a user from adding contents to a cell or changing the contents if today's date is the same or later than the date in an adjacent cell?
For example:
I'd suggest using data validation. Set your range (eg: Sheet1!B1:B), choose 'custom formula' from the dropdown and use this formula
=today()>$A1
Then select 'Refuse input' when invalid data is entered.
Another possible solution would be to use Google Script.
I hope this helps?

Telerik Grid with rage date filter but just one DatePicker

I have this Telerik RadGrid with a date column filter, I'm not happy with the rage filter using 2 calendar datepickers, {edit} to much with or height for that column I have no intentions of validate or restrict dates. {end edit}. Is there a way of solving this with 1 calendar but still using Telerik controls?
The Best way to pick two date (From/To) is to have 2 DatePickers.
There is no logical work around to this, and it's "KISS" .
If you have one DatePickers.
That first fire select event get date "from" and second get date "to".
How can this be user friendly ?
If you enter 1rst date.
Then want to modify the 1rst date Without setting the 2nd date.
How will you do ?
The real question is why dont you want 2 Date picker ?
- Is it because it to big to display it nicely in the FilterBar?
- If it's a User need, try to improve the logic behind the DatePiker.
Perhaps the Date is not random ? And can be done with a RadSlider?
Or they select a date and get for range -3 / +3 range.
There is no simple solution, because what you need and what you want are not clear.
edit:
If you need to have 2 input text with only one single calendar icon, You will end with the same problem how do they chose witch input they wanna set the value in?
I hope this will help,
Regards,
Pierre
The best way for use only one date picker control is create own logic for this filter using one datapicker and something for display your range filter (label).
First fire select event get date "from" and second get date "to".

jqgrid date column filter with datepicker

I have a jqgrid with a Date column. I like to implement a filter option for the column with a datepicker on the column filter textbox.
I have already formatted the column to display the date values in specific format of d-M-y, using the formatoptions attribute.
I implemented the same using the datainit event with a datepicker for the column. But, filter is not working on selection of date using the datepicker.
I doubt, the format differences between the column value display and the datepicker of the column filter as the reason behind this.
Even though, after making both the formats same, filter does not work.
Any help is appreciated.
Thanks
Manikandan J

how can i convert a datetime format to a date after fetching the datetime from database in a BIRT?

how can i convert a date-time format to a date after fetching the date-time from database in a BIRT?
To format a datetime item so that it only shows the date:
click on the datetime data item in the BIRT layout pane;
in the Property Editor - Properties pane, select the Format DateTime tab;
the Format as property will be set to Unformatted by default; you can select from a number of predefined formats from a dropdown list, or if none of these match your desired format, you can select Custom from the dropdown list then enter your desired format in the Format code property (such as yyyy-MM-dd, to get a date formatted like 1900-01-01).

Resources