I just got into the world of PowerPivot, Excel 2013 and Pivot Tables and am in the process of creating a Dashboard which I will then be uploading to SharePoint 2013.
On top of page I added the new timeline filter which I've linked to my pivot charts. Now what I would like to do, is create an additional pivot chart which looks at whatever date range has been used in the timeline filter and subtract 5 years from that. So, when I select a date range of November 2013 - December 2013 in timeline filter, the additional pivot chart will show the details for November 2008 - December 2013. This is where I get stuck.
I'm using two SSAS cubes which I'm combining together in PowerPivot and then display in Pivot Tables and Pivot Charts.
I have an excel sheet wherin there is a column that has the data where in the dates are displayed and many other columns.
I get this excel every Thursday so i want to filter this date column in such a way that it give me the data related to the date of the previous week only yet there is a catch here. When i say previous week i mean.
Suppose today is 03/14/14 then i want the data from 03/07/14 till today ie Last week friday to this week full( so cant use Current week option) and then paste it in a new sheet.
I tried the Record part but in that it is taking a hard coded value as i am selecting the date myself. I dont want to change the date manually every time.
If there are records meeting the criteria are found, they are to be copied to a 2nd worksheet. Otherwise, the remainder of the code is to be executed. I am getting an error "No Cells were found" (which is true since the autofilter doesn't net any results) with the line highted in red.
Consider this snippit of ' ' courts ' Courts: Dim lcrtcopy As Long End_RowDest = 0 wshV.Activate ActiveSheet.Unprotect With Worksheets("Crts_Temp") If .FilterMode Then .ShowAllData 'disable advanced filter of data if applicable End With..........
I have a macro (below) that takes a CSV File and creates multiple worksheets and then filters specific records out of each newly created sheet. The creation of the sheets works fine. But, after setting the filter and then deleting the selected records, when I try to 'Show All', which should leave the unfiltered records, I get an error indicating something is wrong with the 'ShowAllData' method.
Here is the macro up to the point where the error occurs: ...
I have a list details in ranges "CV:DC" column CV has date entries so with the code given above i just select the date from combo box and check the details by pressing command button..Actually this code is doesn't work with combo box but it works with textbox except date data entries in this mode. So how can i improve this option if im going to use it in combo box.
Private Sub CommandButton26_Click() Dim a, i As Long, ii As Long, b(), n As Long ListBox4.Clear With ComboBox6 If .Text = "" Then Exit Sub If WorksheetFunction.CountIf(Range("cv:cv"), .Text) = 0 Then MsgBox "Bad Data" Exit Sub End If a = Range("cv1", Range("c" & Rows.Count).End(xlUp)).Resize(, 8).Value For i = 1 To UBound(a, 1)........................
I have a data field of about 2000 rows & 30 columns.
These contain records on accidents for 56 offices.
One of the columns contains the date an individual had the accident.
There can be a number of records for each office as there are a number of employees in each office who have had accidents over the last few years.
I need to be able to run a macro or set up filters or formulae to show the row containing the most recent accidentin each office, by office. I also need to display the total number of days since the last accident occurred at the end of each row.
The offices are listed in Column B & the date of the last accident is listed in Column V.
I have a column that can be found in the example attachment. My primary question is, how would I go about filtering out all of the Excel Dates & Times that do not have a multiple of 5 minutes in the "Timestamp". Can this be done w/ out the use of macros by use of the custom filter? My ultimate goal is averaging every hours worth of data so it would rather be hourly data rather than the 5-minute data given. More specifically I would be averaging the "Flow" data. The example given is actually a very small portion of what I am working with. I actually have a years worth of 5 minute data.
Anyway, in my workbook I have a master sheet which contains all the information entered (this master sheet will continue to grow as more information as entered). I want to create a userform to allow someone to search the data by selecting a date range (from/to) and a criteria (Pending/Settled) and for the results to be copied into a new sheet (simply I don't want the raw information tampered with in an unregulated way).
I'm trying to build a report whereby i collate the first punch in and the last punch out from a set of data.
This is a sample data: 02-May-1409:00 02-May-1419:14 05-May-1409:31 05-May-1419:38 06-May-1409:31 06-May-1412:56 06-May-1413:10 06-May-1420:11 07-May-1408:36 07-May-1412:45 08-May-1408:45 08-May-1412:35 08-May-1413:23 08-May-1419:54
My result should be the following: 02-May-1409:00 02-May-1419:14 05-May-1409:31 05-May-1419:38 06-May-1409:31 ***these cells should be filtered out 06-May-1420:11 07-May-1408:36 07-May-1412:45 08-May-1408:45 ***these cells should be filtered out 08-May-1419:54
I am having trouble setting conditional date filters for a column using a macro. I have two columns, A&B, each with dates in each cell. I want to filter column B to show dates that are less than or equal the corresponding cell in column A.
For example: A1=10th June 2014, B1=11th June 2014 --> The filter is set on column B, and B1 is excluded as it is not <= A1.
I now have code that automatically refreshes all pivots and send an email with a brief body and summary table. What I wanted was to have VBA update the pivot table to the latest date before sending out the summary.
The table below is the mentioned pivot above where normally, I would update the Date to the latest date where a value was updated. So where PivotTable11, take Max of Date (only one row)
I need to filter data which is 3 months from todays date or older. I'm going to use it in a macro which downloads the information from our accounts system.
I have set up the filter and it works fine when I manually put the Date in, but when I use the date 'formula' for todays date -3 months and reference the cell its in, it does not work. Here's what I have so far :
The filter from the macro : Range("A:I").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _ Range("J1:J2"), Unique:=False
The way I work out the date 3 months from now (in cell K2) : =DATE(YEAR(TODAY()),MONTH(TODAY())-3,DAY(TODAY()))
Cell J1 has the relevent Column Header Cell J2 has the following formula : =" < K2 " (there are no spaces I had to put them in so the post appeared correctly!)
Dim rDataRange As Range Set rDataRange = DBase.Range("rDataBase"). CurrentRegion.Offset(1, 0)
rDataRange.Resize(rDataRange.Rows.Count - 1, rDataRange.Columns.Count - 2).Copy DREG.Range("rdetreg").Offset(1, 0).PasteSpecial xlPasteValues DREG.Activate With Selection .Sort Key1:=Range("rOffDate"), Order1:=xlAscending, Header:= _ xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortTextAsNumbers End With DREG.Range("rdetreg").Select Application.CutCopyMode = False
End Sub
At present the writedetentionregister macro filters the database sheet for a positive balance (in column H) and pastes these records into another sheet called Detention register.
Is there a way of also getting the writedetention macro to count 7 days from the offence date (the E column of the database sheet) and ONLY on or after that date write that record to the Detention Register Sheet?
The workbook containing the database & the detention register sheets are enclosed.
Basically I need to add a column to my source data so I can use it as a filter on my Pivot Table in a different workbook. - something just as simple as TRUE/FALSE if the date is YTD for all years would be ideal.
Have attached an example if that makes it any clearer! nice simple formula would be ideal as sheet is around 600,000 rows long and growing!
I created a large table with data (1700 lines long) and am looking to create a sheet that will use it to do a call for totals whilst filtering for a specific line.
This is what I have currently, filtered by delivery date and key ("furniture desc").
The 58 and 54 are totals for that particular product which I would like to ideally see on a separate sheet.
result1.JPG result 1a.JPG
What I would like to achieve is this: result2.JPG
What kind of formula would I need to use to first filter by date, then by key, then to tally up the quantities and drop them on another sheet?
Bearing in mind that other keys are intertwined on the Y axis so I can't use =SUM(xx:xx)
I have a pivot table with a date variable in a row. I would like to filter these to only show dates equal to, or older than a date value in a cell, when opening the workbook. The max date value is based on the today() function minus 12 months.
I would like to filter between a date range. the dates i need to filter between are in cells A1 and A2. this range contains the start and end of month. It is referenced from another sheet in the same workbook (='Job List'!C2).
i want to filter; greater than or equal to A1 and less than or equal to A2. How I can do it using the advanced filter method. My data range is C2:C9.
I have created a post on TeachExcel.com, but haven't received an answer yet: http://www.teachexcel.com/forum/view...7d85cfb7d#p203. I've attached an example of the spreadsheet.
I have been advised to use this code to search for my spreadsheet for dates
Sub FilterTo1Criteria() With Sheet1 .AutoFilterMode = False . Range("a1:d1"). AutoFilter .Range("a1:d1").AutoFilter Field:=2, Criteria1:={date entered here] End With End Sub
It works but i have two problems
1:Instead of typing the date I want to be able to type a date into a textbox in a userform, is this possible?
2: How would I then go about inputting this data into a list box in a userform?
I am working on project of doing Turn around time Analysis of the volumes of work recieved before 12:30PM and after over a weeks time. My data consist of Work ref, Datein, Dateout, Timein, Timeout. To carry this analysis I have to Mannually filer the data as per Datein / Timein and Dateout and then count the no of work ref completed within Same day or one day or more than one day for each date of a given week. I recorded a Macro which gives count of no of work. for one particular date of week and repeated the same for each 5 working dates of given week. this Macro has gone to big and I want to use some looping technique which would change my filtering criteria. I tried doing this by assining a variable to Criteria but Macro gives no values.