Queries :: Stacked Graph Data Filter

Jun 16, 2015

I have a (simplified) table with productnr., period (year and month) of sales, and sales (in currency). Now I want to know the contribution of the products that have their period of sales after a certain number. This will calculate the contribution to sales of new products. Simple stuff.. (i hope), but I was not able to do so...

I have managed to separate the table with multiple queries and I have managed to have now to queries that can show the sales of products that have been launched before the date and after the date, but combining the two tables is impossible for me..

View Replies


ADVERTISEMENT

Reports :: Removing Small Value Data Labels In Stacked Bar Chart

Jan 23, 2014

I would like to remove small value datalabels in a stacked column barchat.

If you look at the image attached, the small value datalabels tend to clutter the image.

My graph is a MSGraph.Chart.8 inside a Report.

I am working with Access 2010.

Looks like the only possibility to remove the small values is to do that programmaticaly in VBA.

I would like a method that I could call with two parameters : graphname and a threshold value as of which small value datalabels are not displayed.

View 7 Replies View Related

Queries :: Filter Data From A Table Using Query (from Data Input Form)

Dec 30, 2014

I would like to filter data from a table using a query (from an data input form). The objective is to output all results if input form field is empty and to output results higher or equal to the type in the field if field is not Null. The query code is as follows:

IIf(IsNull([Forms]![Form2]![MaxDiffInput]);[Maximum operational pressure (bar)];[Maximum operational pressure (bar)]>=[Forms]![Form2]![MaxDiffInput])

However, is not providing any result when the input field (MaxDiffInput) as a value.

View 5 Replies View Related

Queries :: Filter Data From A Table Using Combo Box In A Form

Feb 19, 2015

I would like to filter a data from a table using a combo box in a form.

The field I would like to filter is called ManufacturersID in MainTable and consist of text and wildcard characters [e.g., Teledyne O&G (ODI), TE Connectivity (Deutsch), etc...], so are the combo strings which are extracted from the table ManufacturersTable. It is not filtering anything. I suspect that the wildcards and spaces are the problem. I also tried to get the combo string to a text box in the form and use it in the query with no success. Additionally, I also tried Like [Forms]![FormName]![textbox] in query criteria but still not filtering...

How can I overcome this?

View 2 Replies View Related

Queries :: Using Form To Filter Data In CrossTab Query?

Jul 27, 2013

problem when I am trying to use Form to filter data from a cross tab query though I have already defined the parameters. The SQL is as under :

//Code start
PARAMETERS [FORM]![START_MONTH] DateTime, [FORM]![END_MONTH] DateTime;
TRANSFORM Round(Sum(CLng([A_GAS_m3]+[NA_GAS_m3])/1000000),3) AS GAS_MMSCM
SELECT maindata.on_off, maindata.state, maindata.OPERATOR, maindata.field_block
FROM maindata RIGHT JOIN PRODUCTION ON maindata.field_block = PRODUCTION.FIELD_BLOCK
WHERE (((maindata.field_block)<>"Panna" And (maindata.field_block)<>"Mukta" And (maindata.field_block)<>"CB-ONN-2000/2(NSA)" And (maindata.field_block)<>"CB-ONN-2000/2(BHEEMA)") AND ((PRODUCTION.MONTH) Between Format([FORM]![START_MONTH],"dd-mm-yyyy") And Format([FORM]![END_MONTH],"dd-mm-yyyy")))
GROUP BY maindata.on_off, maindata.state, maindata.OPERATOR, maindata.field_block
ORDER BY maindata.on_off, maindata.state, maindata.OPERATOR, maindata.field_block
PIVOT PRODUCTION.ACTIVITY;
//Code End

When I save it prompts for the Start and End Month and When I run the query it pops up the form twice...

View 1 Replies View Related

Queries :: Query Filter Out Data From A Table Between Times On 2 Dates

Jul 24, 2014

Running Access 2010 and developed this query to filter out data from a table between times on 2 dates (day before report run and day of report). Covers data from a shift that carries over to the next day.Trouble is, the PC i developed on still operates the query as expected. However, on the PC the database resides (not networked just stored) and operates, the query brings up no data at all unless I remove the Time filtering.

This PC used to operate correctly up until early this year (about 18 months operated correctly) when the PC was replaced due to failure. Access version is the same and I am at wits end to what the cause is. Here is what my query looks like:

Quote:

SELECT Breakdowns.BreakdownDate, Breakdowns.Time, Breakdowns.Shift, Breakdowns.Downtime, Breakdowns.Equipment, Breakdowns.Conveyor, Breakdowns.Fault, Breakdowns.Stopper, Breakdowns.Gate, Breakdowns.Dolly, Breakdowns.Carrier, Breakdowns.FaultType, Breakdowns.Comments, Breakdowns.Tradesman
FROM Breakdowns
WHERE (((Breakdowns.BreakdownDate)=Date()) AND ((Breakdowns.Time) Between #00:00:00# And #6:29:00#) AND ((Breakdowns.Shift)="Night")) OR (((Breakdowns.BreakdownDate)=Date()-1) AND ((Breakdowns.Time) Between #22:30:00# And #23:59:00#) AND ((Breakdowns.Shift)="Night"));

View 14 Replies View Related

General :: Graph Not Displaying Any Data?

Jul 23, 2012

I Have this graph that needs to be run from a combo box selection. it doesnt seem to want to display any information at all. i have attached my database.

View 2 Replies View Related

Reports :: Hide Graph If There Is No Data

Sep 11, 2014

I have a report that contains 5 graphs, one for each day of the week. I run this report daily. When I run the report on a Monday, only the Monday graph displays data and the other graphs are blank as there is no data for that day just yet. Is it possible to hide these graphs if there is no data? I did find one suggestion to create a text box with the following code

Code:
Private Sub Report()
If [SumOfWed] = 0 Then
Me.Graph24.Visible = False
Else
Me.Graph24.Visible = True
End If

This does't work for me.Graph24 is the name of Wednesdays graph and the row source for the graph is TRANSFORM Sum([Wed]) AS [SumOfWed] SELECT [Machine] FROM [qryShiftDays] GROUP BY [Machine] PIVOT [Shift];

View 11 Replies View Related

Line Graph Data Storage/input

Aug 24, 2006

hi all,

got a wee problem... i have a number of graphs showing volume (x axis) and pressure (y axis) for particular pipe sizes.... (it's for pneumatic conveying)

depending on the resolution of the hand drawn graph there could be 100's of points along a single graph line (x and y points)....

My program basically needs to select a point(x and y) closest to the graph line that it intersects. (come on mech. engineers)

Problem is how should i store / input the graphs into the db file?

I'm trying to avoid have to literally input every x 'n y point per line per graph... there are about 20 lines per graph and a 100 odd graphs!!!

I was thinking of inputing a start and end point then use some sort of formulae to draw a logical line and pick up all the xy points i need, then store them...

Any thoughts?
Thanks

View 1 Replies View Related

Forms :: Label Dependent Upon Graph Having Data

Mar 21, 2014

I created a number of graphs on forms that graph GamesSold vs RDate. If a game has no sales, there won't be any data. Is there a way I can add a label that will automatically display "Game is not yet released" and make it dependant upon the graph having data, and invisible if it does?

View 2 Replies View Related

Reports :: Stacked Bar Chart - How To Customize Order Of The Columns

Mar 12, 2014

I am using Access 2007-2010 and I was able to create a report but now I want to include a stacked bar in it.

My report shows one record at a time, so the values for my chart change accordingly. The chart should have four columns: Student, Homemaker, Retired, Employed I have assigned a colour for each category in "Edit" mode (by clicking separately on each column). However, sometimes the results don't show all four values and then my stacked chart only has 3 categories, but I would like it to show the missing category and just have value as 0. But most importantly the colours get all messed up. Can I permanently assign a color for each column?

Also the order is not how I want it to show. Right now it's in alpha order..how can i customize the order of the columns?

I tried doing this in datasheet - saved; but when I switch to a report view - everything changes back...

View 1 Replies View Related

Combine Fields In Different Tables And Amount Is Duplicated / Stacked

Jul 20, 2015

I have a few input tables and I am trying to combine the fields from 2 tables into one query. How do I go about doing it without having the project amount (highlighted in red) being duplicated?

Table 1

Table 2

Query

Project
Project Amount

Project
Budget
Budget Amount

Project
Project Amount
Budget
Budget Amount

[code].....

View 2 Replies View Related

Report Out With One Click - How To Get Filtered Data In Graph Form

Sep 29, 2014

My company wants me to run a high level report which ask for three filters. However as its high level they want it should run with a click instead of choosing filters from three drop down ...

As this report comes out as a graph I can't use report wizard to run tabular report. Any smart way that they click a button and get filtered data in graph form.

View 6 Replies View Related

Reports :: How To Take Two Separate Queries To Create 2 Line Graph

Nov 21, 2014

I want to be able to take two separate queries to create a 2 line graph. Also to be able to spice the graphs up some. The ones I have done, single line, even seems dull.

View 7 Replies View Related

Queries :: Complicated Query (nested Subqueries) For A Trend Graph

Apr 17, 2014

Some essential background first. I have a Balances table which records balances by date. I also have an Issues table where problems are logged. There is a one-to-many relationship between Balances and Issues (i.e. each Balance can have multiple Issues). I also have a Comments table where updates for each Issue are recorded. There is again a one-to-many relationship between Issues and Comments (i.e. each Issue can have multiple Comments)

There are two key date fields in the Issues table :FlagDate (the date an Issue was flagged by a user for investigation)

ResolveDate (the date said investigation was brought to a conclusion)

There is also a date field in the Comments table :UpdatedWhen (the date any given comment was added)

So the basic flow is that an Issue gets flagged (FlagDate), then various comments are added (multiple UpdatedWhen's) and finally the Issue gets resolved (ResolveDate)

I need to incorporate a trend graph which will show the counts ofNew (i.e. new issues flagged as of each day) Cleared (i.e. issues resolved each day)

Updated (i.e. issues not yet resolved but updated each day)

Unchanged (i.e. issues not yet resolved and not updated each day)

Outstanding (i.e. all unresolved issues as of each day)

This is the SQL I've put together to get that table of information on which to base my chart :

Code:
SELECT [tblBalances].[BalanceDate] AS AsOfDate,
(SELECT COUNT([tblIssues].[IssueID])
FROM [tblIssues]
WHERE [tblIssues].[Flag] = True
AND [tblIssues].[FlagDate] = [tblBalances].[BalanceDate]) AS New,

[Code] .....

The subqueries for 'New', 'Cleared' and 'Outstanding' work perfectly; the resultant dataset gives me one record for each date in the Balance table and correctly counts the number of issues falling into each of those buckets.

The problem I have is with the 'Updated' bucket. If a flagged issue happens to be updated twice on the same day (which is perfectly acceptable), it counts this twice as well. I don't want this as I just want to know how many issues were updated on any given day - not how many updates there were.

I tried using COUNT(DISTINCT) in the 'Updated' subquery but it gives me a syntax error - on further research, I don't think it's possible to use the DISTINCT keyword in a COUNT subquery (at least not easily)

I also tried grouping by IssueID within that 'Updated' subquery but it still gives me the duplicate count within the same IssueID (and returns nulls rather than zeroes for those days where no updates occured)

I think I need to add a subquery within the subquery () to only return the latest comment as of the date in question - something along the lines of :

Code:
(SELECT TOP 1 [tblComments].[UpdatedWhen]
FROM [tblComments]
WHERE [tblComments].[IssueID] = [tblIssues].[IssueID]
AND DateValue([tblComments].[UpdatedWhen]) <= [tblBalances].[BalanceDate]
ORDER BY [tblComments].[UpdatedWhen] DESC) AS UpdatedWhen

But how to do this, nor if it is even feasible in Access to begin with.

View 2 Replies View Related

Queries :: Store Results Of Counts And Create A Graph / Chart

Feb 9, 2014

I have a a table 'Orders' with fields (Order Number, Order Date, CD Number, Card Number).

I would like to produce a query in access 2010 that would allow me to count how many times the CD Number 'Diab190617' has been purchased.

I would like to store the results of this count and counts on other cds numbers somewhere so that I can produce a graph/chart of these counts. How can I do this?

View 4 Replies View Related

Modules & VBA :: How To Update Data For A Chart Graph In Word Document From Access

Jul 29, 2013

Is it possible to update the data for a chart graph in a word document from Access using VBA?

View 4 Replies View Related

Filter Parent Data By Child Data?

Jul 11, 2006

All,

Is it possible to filter parent records by child records (or subdata) without showing multiple instances of the parent data in the form/query?

Cheers,

Bobadopolis

View 2 Replies View Related

Data Filter From Form

May 14, 2005

Friends

I am using access to keep farming data of 300 farmers. I have a edit screen, where the farmer's name are in a drop down combo. After update, I want the consequent data field to be changed according to the farmer's name. I am using the following code in after update of the combo field farmer:

Private Sub farmer_AfterUpdate()
DoCmd.ApplyFilter , "Id = Forms!basedata_edit!farmer"
Me!farmer.Requery
Me!farmer.Enabled = True
End Sub

ID is the reference of the farmer which is stored in the master data. basedata_edit is the form name. My problem is, for the first selection, the filter is showing the proper data. But if I change farmer's name, the other fields are not changing.

What do I need to do?

Anshuman :confused:

View 1 Replies View Related

How To Filter On Data That Begins With PI

Sep 1, 2015

In design view, how do I filter on my data so that it only shows data that beings with "PI"? Yes I know I can do this by the main screen and say select text that beings with PI but I would like to know how to do it with sql.

View 6 Replies View Related

Easiest Way To Filter Data In A Table?

Feb 5, 2008

I am trying to filter information in a table like you can filter information in columns in Excel. For example, if I have a table with data in it like dates and times and I wanted to filter to find all records with the date of 2/5/2008, how could I do that easily? Can it be a drop down box like in Excel. I'm making a program for someone, and I don't want for them to be able to change anything in the program so I have disabled viewing of some toolbars, besides, the filter button in the toolbar never does what I want it to do.

Thanks!

View 1 Replies View Related

Help Using A Combo Box And Button To Filter Data

Oct 11, 2006

Hi there!

I am pretty new at this so please bear with me :confused: (like that isn't said a thousand times!). I am creating a small database to track task data (manpower tracking basically) where I have the following fields:

Customer
Functional Group
Task Status
Task Name
Task Description
WO #
Funded Hours
Notes

I would like to create a combo box where the user can select the customer (I have 124 records in total, 15 unique customer names) and all tasks relating to that customer are filtered directly in the Form by clicking a single button to do the filter.

I don't want to create dozens of tables and forms to flip through and such (users need it as simple as possible). I have created queries but the only way I have successfully filtered each customer is via buttons...but 15 buttons to filter each individual customer is a pain in the butt, so any help would be REALLY appreciated.

Please let me know if I haven't explained this clearly enough! :)

Thanks!

View 10 Replies View Related

Filter Data To Compile A Report???

Jul 3, 2007

every month i compile a Customer Spend Report for my sales manager.

I currently do this by:

1) Taking my database into table view.
2) Setting the date to Asend.
3) Then copy all jobs from the first day of the month to the last day
eg: June 1st - 29th.
4) Copy the data
5) paste into excel
6) Set auto filter on excel
7) Copy & Paste each customers spend to an individual sheet.

This is very painful! Esp when i know that since all the data i need is in the database and there is a way to get my DB to do this for me.

I have created a query to pull the data out of the database.
Then made a report using the query as the "location of data"

Right i have the report now pulling out the data and showin how i want it.

It shows the groupin of jobs by "Customer Name"

I now want to set a filter to it so that i can tell it to give me the report for all customers for just one month.

EG: June 07.

That way i wil have the data shown as:

Customer:
Month: June07
Cost For Doin Job:
Total Charge Out:
Profit:

How do i do this??? I know it has to be done within the query but i cant work out how to set it.

If any one can help that would b great!!!

thanks in advance!
gary

View 1 Replies View Related

[Query] Help With Criteria To Filter Certain Data

Feb 1, 2008

Hi there,

I was wondering when I am filtering out data from a table, is there a way for me to filter out specific lines (as in, if I have a 100 line datasheet, can i choose to filter out lines 5, 10 and 20 out of the query)?

For instance:

Line Name Address Phone Number
1 A1 fjlafs 453453454
3 A2 fsdfsd 343534534
4 A3 gsdgsdg 354543534
5 A4 gsdgsdgsd 345345345

I want to make it so that lines 2 and 4 are NOT included in the query when I click "RUN".

Thanks in advance!

View 4 Replies View Related

Forms :: Filter Data In A Subform

Jun 14, 2013

I have a subform in a form that displays all members of staffs Name and employee no. I am trying to find a way to search the subform on the main form it's on using textboxes to filter data, here is the code I have that searches the employee no.

Code:
Private Sub Command178_Click()
Dim dbs As Database
Dim qdf As QueryDef
Dim sqlstr As String
Dim sqlstrwhat As String
Set dbs = CurrentDb

[code]....

I do not get any errors and I haver used the same code structure for other subform filters but when I search for an existing employee no. the subform only displays a blank record with the employee no. 1?

View 5 Replies View Related

How To Configure Query To Filter Data

Aug 14, 2012

I have large dataset(more then 15,00,000 rows) In one column I have Amount stored as text eg: $15,000.00 $ 12,000.00 $ 17,520.00

Data is imported from various small files and is updated regularly. Now I need to filter dataset based on this column criteria like > 15000, <= 5000

How can I configure query to filter data.For example data are:

Id
Detail
Value
Part
25252
Some text here
$17,294.00
1

[Code]...

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved