I need to set the default year and month displayed on a datepicker according to other values entered on the form.
Does anyone know how to set the year and month without actually calling setDate() ?
Thanks,
Use the defaultDate method not setDate
Related
I have a measure with year to date function and I want to replicate it in Direct query mode but it's not allowed, do you know some alternative ?
Thanks
My problem is that I need to change the date time format (5/1/2020 12:00:00 AM) into date time format (2020/05/01) on a Work Item's custom field. We do not want time numbers.
Is that possible? What type of setting is it?
Thank you,
I have a column that displays data from the function today-1 where it shows yesterdays data. I placed it in a filter to only show the "true" values. The issue I am having is I need to show yesterdays data but I need to exclude the weekend. Example: Today is Monday and I need to show Friday's data not Sunday's as there isn't any. Please Help.
The logic for this is simple. If today is a Monday, show the data for today - 3, else show the data for today -1.
=if(weekday(Table[DateColumn])=2,Today()-3,Today())
Check out the Weekday() DAX function documentation here: https://learn.microsoft.com/en-us/dax/weekday-function-dax
Is it possible to create a slider in PowerBI just like we create a slider in EXCEL.If possible can someone point me to some basic tutorials for that or may e an example would really help a lot.
I think OP is referring to a slider in the context of having a slicer with variable values that can be adjusted by dragging a button of some type along a bar with beginning and ending values, such as a date. Power BI added a date slider in a recent update which is accessed by choosing the slicer visual in your screenshot and selecting a date field from the query. There is also a custom visual which allows granularity from year to quarter to month to week to day. The beginning of the fiscal year can be customized in the formatting options, so it's pretty useful if one is using Power BI in a business setting.
Unfortunately there doesn't seem to be any other type of slider available which allows the use of fields other than ones which contain date values. Even when the field is a date/time value, neither of the sliders have the ability to show hours/minutes/seconds. I was searching for one I could use with time or even on an index column when I saw this question and haven't had much luck.
I have searched throughout the net but still cannot figured out. I have a SharePoint document library where i have start date and end date. I would like to know how to tell SharePoint to hide the items once the end date has passed?
Thank you in advance.
Create a view on the list or change default view and filter for startdate >= today and enddate < today. That should do what you want or do you have special requirements?