Google Data Studio: How Can I select only one day in the Date Range filter - date-range

I want to create a daily report for some metrics with Google Data Studio.
However, when I add a range filter I can only select a range of days.
I have some questions about it:
1) Is there some way to only select one day in date filter?
2) I have no data before May-2018. Can I delete days before this date?
I have tried to use a filter control instead of a Date range filter with the Date column in the dimension of the filter.
However I cannot make it work because when I select for this filter:
Default date range, Auto (May 1 2019, today) I do not know how can I show the info from "today" instead of the whole range

So there are a couple of single selection which are single days - today and yesterday. These are available via a drop-down in the top-right of the date selection.
You can also select a single day by selecting the same date on both Start date and End date.
You can also change the default selection in the Edit mode by clicking on the Date filter and then changing the date in the "Data" section on the right panel

Related

Calculate how many times a person completes a task in a date range Excel?

I'm trying to calculate how many times a person completes a task in a date range Excel? I can get part but not all of it.
For example For Admin 1, I'd like them to confirm a task is complete (data validation drop down) and then enter the date.
I want to count the dates for that person by the week and so the date range would be 01/01/2022 to 17/01/2022.
Any help appreciated.
Many thanks.
This may be a good place for a Pivot Table solution.
Using the following table that is a similar format to yours:
Table
You can go to the insert tab and in the Tables section select PivotTable. Use the defaults.
PivotTable Selection
This will allow you to start creating the Pivot Table. From here you can place Date in Rows, Person in Columns, and Confirm Task Complete into values.
Proper PivotTable Arrangement
You can group the date by clicking on any date value and selecting Group Selection in the Analyze tab. Group by Month and you should get a result similar to what you expect.

Pivot Table - How do I make 'base item' for 'difference from' dynamic using vba?

I am attaching the macros, and desired result as an image.
So, I am running a macro to find differences (amounts) between dates that are selected from the slicer, using 'previous' as the base item in 'difference from' and it works perfectly. Now, I want to run another macro where the difference should be from the oldest of the selected dates. I hardcoded it once with a set of dates where the oldest date will always be 31-12-2021. But if I want to compare the data from 2021 then I need to find differences from 31-12-2020, basically the end of previous year. How do I make this base item dynamic so that it's either last end of year date or the oldest chosen date if someone is manually choosing the dates from the slicer?
My Macros
The desired pivot table result
Can I have the user enter the oldest date in a cell and have the vba code refer to that cell or something?
Any help would be appreciated. Thanks!

How to automatically populate range of cells from other sheet using a drop-down menu

I'm unable to automatically populate range of cells based on the month chosen from the drop-down menu.
I have 2 sheets (dashboard and data dump). In the dashboard tab I have a drop-down menu with a list of months (from June to March 2020). Below that I have 5 columns, list of material, start date, end date, cost, and received/not received (Y/N). The data dump also contains the same columns/info as the dashboard tab.
The objective was to choose a specific month from the drop-down menu, which then in a data dump tab, finds all of the materials that are anticipated to be received in the same month and automatically populate the list. The end date would be the 'anticipated to be received' date and all corresponding material would be automatically populated in the dashboard tab.
I've tried to use INDEX(MATCH) formulas in Excel but I realized 2 problems:
The drop-down menu months' dates are always the 1st day of the month whereas, End Date column in data dump tab has different dates. I found a workaround with this by subtracting End Dates to always equal the 1st day of the month
Because there are no unique formulas or IDs, the Excel stops at the first material it finds using INDEX(MATCH) which meant if I copied this formula to a range of cells underneath the first row, the results were always the same material.
I've watched some Youtube instructors use UNIQUE/FILTER functions but apparently these functions are not available to the public yet. I have entered the info manually for now but what I would like to do is to choose the month in the drop-down menu and have the equipment list below automatically populate.

Excel: How to create a weekly calendar with a drop-down day selection?

I'm trying to create a weekly calendar showing times of availability for a team. Header is "Monday"/"Tuesday"/"Wednesday" etc., with the time of day and availability of each team member to meet, as shown in the image:
In the header containing the day of the week, I want to create a drop down box where I can select other days and have the calendar automatically change to that day's availability. E.g. if I select "Wednesday" from the drop down box, the calendar updates the cells showing the data for Wednesday, but the calendar format still remains. I'm not sure how to do this using Data Validation; I know that Data Validation can create a drop-down list of values, but I don't know how to link the selection from that list to a group of cells that change based on the list selection.
Thanks!
There are various ways to accomplish this, but this is my favorite.
Create your list, as in the image, cells E2 to E8.
Click Data Validation under Data, Data Tools. Select List in the Allow: window and select your range in the Source: window. I did this for cell A2 in the example.
When done you can select the cell and see the values you can select from.
I recommend that the list be on another sheet and you can make it a table, but basically that is it.
As #Forward Ed pointed out, you still need the formulas in every cell referring to this value and whatever your data fields are in the background. Probably need INDEX/MATCH or VLOOKUP.
OBTW, you can also type in the values like this:

Excel VBA - looping formula array and pass it into variables

i'm working on an exercise where i have the following columns
first column for primary key
second column for open date
third column for open price
fourth column for close date
fifth column for close price
The primary key will repeat multiple time due to different open date and close date through the year. So currently i'm able to use advance filtering function through vba and get an unique record of primary key, but i also need to find the min and max of open date and close date based on each primary key and identify the open price based on min of open date and closed price based on max of closed date.
can anyone help? because i can solve this with array formula within excel but no luck of converting each array formula into vba and pass it to variables.
sample list:
expected result:
array formulas used:
=MIN(IF(A1:A70926=J2,B1:B70926))
=INDEX(C:C,MATCH(1,(J2=$A:$A)*(M2=$B:$B),0))
=MAX(IF($A:$A=J2,$B:$B))
=INDEX(F:F,MATCH(1,(J2=$A:$A)*(O2=$B:$B),0))
I am not entirely clear on which max and mins you want but provided you convert your date strings to actual dates, you can use a pivottable to get any combination of max, mins from the date e.g.
With the above:
Helper column F has the formula in F2, which autofills down as source is set up as Excel table.
=DATE(LEFT(B2,4),MID(B2,5,2),RIGHT(B2,2))
This generates an actual date.
Pressing Ctrl+T, with a cell selected in the range, convertes the data into an Excel table, then Alt+N+V generates a pivottable from that table.
Then arrange as you wish. For example, with date in the rows area you can easily then select max and min dates via filter. You can have ticker either as a page field filter or add to the rows in front of the converted date. And then add open and closed fields to the values area. You can add the same field more than once. Make sure to right click on the first time you add and do value > field settings > min
Repeat for adding the same field and set as max.
Close up on pivot:
If you want the all time max and min value, simply remove the date field from the rows:
If you want for a particular year, when date field is in the rows area, right click and use the date filters functionality:

Resources