Forms :: Access Pivot Chart - Specify Order Of Categories On X-Axis

Jun 19, 2014

I have a pivot chart based on a crosstab query. I would like the items on the category axis (x-axis) to appear left to right in the order that they appear in the query results.

Some specifics:
Tables:
tblFreq
FreqID (PK, Number, Range 1-7)
Frequency (text)

tblResp
RespID (PK,Number, Range 1-5)
Response (text)

tblResults
ResultID (PK,AN)
FreqID_FK
RespID_FK

Query:
TRANSFORM CInt(Nz(Count(tblResults.ResultID),0)) AS CountOfResultID
SELECT tblFreq.Frequency
FROM tblResp INNER JOIN (tblFreq INNER JOIN tblResults ON tblFreq.FreqID = tblResults.FreqID_FK) ON tblResp.RespID = tblResults.RespID_FK
GROUP BY tblFreq.Frequency, tblFreq.FreqID, tblFreq.FreqID
ORDER BY tblFreq.FreqID
PIVOT tblResp.Response;

[code]...

Which I suppose is alphabetically ordered.I am unable to use OrderBy in the forms property sheet because tblFreq.FreqID is not an available field, even though it's an expression in the query.

View Replies


ADVERTISEMENT

Forms :: Non Alphabetical Order Of X-Axis Label On A Chart

Jan 4, 2015

I have inserted a bar chart onto a form using a totals query. The query is grouped by days on stock, eg. '0-30', '30-60', '60-90' etc. which is therefore the labels on the x-axis.

The chart displays the correct data, however, the chart automatically displays the categories on the x-axis in alphabetical order... '0-30', '120-180', '30-60' etc.. Is there anyway to adjust this order to be eg. '0-30', '30-60', '60-90' etc?

View 1 Replies View Related

Modules & VBA :: Pivot Chart - Auto Axis For Y Scale

Feb 16, 2015

I have a pivot chart in ms access and i want to have auto-axis for y-scale. I want that when the data will be changed the scale would be automatically arranged.

View 14 Replies View Related

Forms :: Chart With Two Y Axis In MS Access

Jan 29, 2015

i have two charts in ms access and i want to combine these two charts in one chart. do you know how i can have two y-axis in ms access charts with two fields for data area.

View 3 Replies View Related

General :: Access Chart - Possible To Change Values On Axis Value

Feb 25, 2013

Access charts know if it's possible to change the value axis values.

I create a chart getting values from a query I run, it plots the values but auto selects the value range and the increment.

The values on the value axis are : 0, 0.25, 0.5, 0.75, 1

Is there anyway I can get the values to increase by 0.1 rather than 0.25?

View 1 Replies View Related

Forms :: Pivot Chart Going Over 100%?

May 9, 2014

I am writing in access 2007 and want to make a trend analysis chart based upon performance date.

I have created a query using 3 criteria from a table - date, client and performance percentage.

I've then put this into a pivotchart no problem BUT as some clients have more than one entry per day its giving me figures over 100%.

Is there a way to exclude multiple entries for any given date while retaining the other criteria ?

View 1 Replies View Related

Forms :: Pivot Chart For Report?

Oct 16, 2013

We have a chart that is showing jobs by customer. I'd prefer it be in a pie chart but it's way too many to read. We changed it to a bar which is much easier to read but it displays the percentages as 100% for everything.

View 5 Replies View Related

Forms :: Pivot Chart Decimal Displayed

Jul 17, 2013

I have a pivot chart that has site locations, and hours on the bottom, and then count of records with each site. Which is how many people used this site during this time for each bar. My problem is when I generate my pivot chart, every single time I have to fix the scale on the right hand side because it has decimal points in it. They only appear when I add dates/times to it.I want to give this to my boss that has access runtime, so all he has to do is click the button to get the chart and then print or send it off. How do I get rid of those decimal points when the report is generated?

View 1 Replies View Related

Modules & VBA :: Creating Excel Pivot Chart In Access

Jan 21, 2014

I've written this code in Access to create a pivot chart in Excel. All the code listed is good except for the last line. The last line creates another instance of Excel. I can't figure out what the correct syntax is.

Set xlApp = New Excel.Application
xlApp.Visible = True
Set wb1 = xlApp.Workbooks.Open("c:chi estpivot.xlsx"
wb1.Sheets.Add
wb1.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _

[code]....

View 14 Replies View Related

Forms :: Pivot Chart Legend Labels Show SUM

Aug 27, 2014

How do I change the legend labels of a pivot chart form so that it doesn't show the words "sum of" in front of my description. I am using access 2007.

View 2 Replies View Related

Forms :: Opening A Form Pivot Chart From A Button?

Mar 22, 2013

I made a form pivot chart. When I open it by going to forms and opening, it opens in the pivot chart view. However, I created a button on a switchboard form for easy access to this pivot chart form and when it opens from the button it is in form view and not pivot chart view. How can I get it to open in pivot chart view from this button so that the users don't have to keep switching it to pivot chart view manually?

View 1 Replies View Related

Forms :: Filtering Pivot Chart Subform By Parameter Without VBA

Jun 28, 2013

I have a pivotchart subform who's Filter Property I've set to:

Code:
[EEIC_ID] In ([Forms]![MainDataControl].[EEICBuffer],0) And
IIf([Forms]![MainDataControl].[TypeIDBuffer]="",[AG_TYPE_ID] Like "*",[AG_TYPE_ID] In ([Forms]![MainDataControl].[TypeIDBuffer],"")) And
IIf([Forms]![MainDataControl].[AgencyBuffer]="",[AGENCY_ID] Like "*",[AGENCY_ID] In ([Forms]![MainDataControl].[AgencyBuffer],"")) And
IIf([Forms]![MainDataControl].[FacilityBuffer]="",[FACILITY_ID] Like "*",[FACILITY_ID] In ([Forms]![MainDataControl].[FacilityBuffer],""))

The issue is that none of the parameters are recognizing the textbox controls even though the references appear to be correct. Per access.mvps.org/ access/forms/frm0031.htm, I've attempted several versions of the syntax.

I believe that I've done this successfully in several other forms, though none have been been via a pivotchart. What's more, this exact same filter string worked when the pivotchart was its own popup and the referenced form was a separate window. Once I embedded it (being the pivotchart) as a subform, however, I began to be presented with the "Enter Parameter Value" dialog, even though the control's address had not changed. Note: the form with the embedded pivotchart is separate from the control's parent form.

In essence: the filter property of a pivotchart subform has a parameter that references a control on a seperate popup form, and every one of the syntactual statements I've tried returns an "Enter Parameter Value" dialog (where they did not when the pivotchart was not a subform). I've also attempted to isolate this issue by putting the text box controls on the parent form (rather than the separate popup form) and referencing them via the pivotchart subform, but this provided no resolution (the same thing happened).

View 8 Replies View Related

Forms :: Dynamically Change Pivot Chart Title

Jan 20, 2014

I am trying to change dynamically the text of the PivotChart, according to the current filter. This is a user request. The VBA code should run whenever the view is changed to pivotchart. I'm im Access 2007

This is my code so far:

Private Sub Form_AfterFinalRender(ByVal drawObject As Object)
If Not (Me.CurrentView = acCurViewPivotChart) Then Exit Sub
Me.ChartSpace.HasChartSpaceTitle = True
Me.ChartSpace.ChartSpaceTitle.Caption = Me.Filter
End Sub

This generates an error:
Runtime error '-2147467259 (80004005)':
Cannot change chart attributes in an event handler

I am stuck. Is there any way around? I have placed a button to the datasheet view of the form to take users to PivotChart view. I can change the chart title from the code of that button. But I can't prevent users from using the built in ribbon button for pivotchart view, so I need to run this code from an event.

View 3 Replies View Related

Y Axis Scale On XY Scatter Chart

Jan 15, 2013

I've cannibalized a chart from another database, hooked it up to my new data source and solved most of my formatting problems except for one, the Y axis of the chart won't display the scale properly. The minimum is set at - 3 and maximum is set at +3, but when the report opens the scale reads from -0.003 to +0.003. I've tried all the number formats I can think of. Currently it is set to General. If I set it to a number with anything less than 3 decimal places it formats as 0 or 0.00.

View 1 Replies View Related

Forms :: Pivot Chart To Show Progress In Multiple Projects Over Time

Aug 30, 2013

I'm aiming to create a stacked area chart to display the progress of multiple projects over time, so we can review and forecast project load over time.

The data comes from this table:

tblProject
* ProjectID
* DateProspect
* DateConfirmed
* DateStarted
* DateComplete

A project passes through the statuses Prospect, Confirmed, Started, Complete. The current status of each is calculated in qryStatus from the dates in tblProject. The past and forecast statuses for each project will probably be calculated each time the chart is created (or maybe not necessarily so?)

To create the stacked area chart, the x-axis will be months (e.g. Sept 2013 - July 2015). On the y-axis will be the count of ProjectID, and the series will be the different project statuses.

The sticking point is getting from the Date* fields to the past and forecast statuses in each month. After that I imagine it'll be reasonably straightforward to put into a pivot/chart.

View 3 Replies View Related

Chart Primary & Secondary Axis Issue

Jun 13, 2006

Hi

I have three figures to display in a chart.

The Total Ongoing Calls
The Ongoing Calls in Area 1
The Ongoing Calls in Area 2

Ideally the Total Ongoing Calls should equal the other two but this is never the case due to calls in wrongs areas etc. To display this I have the Total Ongoing Calls shown as an Area Chart on the Primary Axis with the other two figures shown as a Stacked Area Chart on the Secondary Axis.

This way if I manually fix the Primary and Secondary Axis Scale to the same then I can see at a glance the total in both areas and the discrepancy from the Total. Great.

The issue is that the Primary Axis will almost always be slightly higher than the Secondary Axis which means that whenever the Scale changes I would have to manually change the other Axis. Is there any way, programaticallly or otherwise, that I can link the two Axis together so that if one changes up or down the other changes with it.

Thanking everyone I am about to confuse in advance.

JC

View 1 Replies View Related

Updating X-axis Labels In A Chart On A Report

Jan 14, 2013

I have data in a chart over four groups that are just labeled A, B, C and D in the underlying data. The table wants to label the x-axis of the chart SumOfA, SumOfB, SumOfC, and SumOfD. Ideally I would like to drive these labels by text boxes on a form, but I can't even figure out how to change them manually. I got to the data table in the chart designer and changed them there, and they'd show as changed in design view, but then they weren't changed in report view.

View 5 Replies View Related

Queries :: Access Chart Order By Count?

Mar 8, 2014

I have a query that Counts the number of times a model number is used. I use totals and the count function under total to get that count. I have the top 10 models used and the query returns my information correctly but. When I make a form or report and place a chart in that uses this query, the results are in alphabetical order not in the order of usage. I need my chart to either go from descending or ascending order of usage and not by alphabetical order of the model number or name. What am I doing incorrectly? It seems like the chart would display the same way my datasheet would in the query.

Here is my sql statement.

SELECT TOP 10 Count(tbl_Closed_Jobs.OEM_Model) AS CountOfOEM_Model, [OEM] & " " & [Desc] AS Expr1, tbl_Closed_Jobs.Desc
FROM tbl_Closed_Jobs
GROUP BY [OEM] & " " & [Desc], tbl_Closed_Jobs.Desc, tbl_Closed_Jobs.OEM_Model, tbl_Closed_Jobs.OEM, tbl_Closed_Jobs.Plant
ORDER BY Count(tbl_Closed_Jobs.OEM_Model) DESC;

View 1 Replies View Related

Forms :: Refresh Pivot Chart In Subform After Changing The SQL Of The Subform's Query?

Sep 16, 2014

I have a form, a couple of comboboxes and text boxes on it. When these are filled out, the SQL of a query is changed using these parameters.

There are three subforms on the form, all pivot charts, all based on the query being changed.

The goal would be to update all three according to the user-given parameters.

Right now the subforms only update if I close and open the form, which is probably not the best solution, since it's too slow.

I've also tried to requery and refresh them, with no result.

Then I tried to overwrite the recordsource of the subforms with the same text that was originally there. This got them to refresh their data, but then all of the charts disappeared and had to be built again, so this is a no go too.

View 7 Replies View Related

Modules & VBA :: Display A Pivot Chart

Nov 18, 2013

I have a need to display a pivot chart by clicking a button on my menu screen. At the moment my button will just display the query results and if I then click on View/PivotChart View my chart displays.

Code:
Private Sub Command316_Click()
DoCmd.OpenQuery "R06X - OOS Chart", avViewNormal
End Sub

View 4 Replies View Related

General :: Showing Pivot Chart Value As 100%

Feb 19, 2014

I am completely new to Pivot Tables/Charts?

Basically i have two totals:

Value 1 which is the number of working Employees
and Value 2 which is the total number of Employees

Both are subject to change but my main problem is that Value 2 (Total of Employees) i want to display as 100% in a chart and Value 1 is the percentage of employees utilized.

I have the calculation working fine (Value 1/Value 2).

But if for example i have 35 employees as Value 2, how do i make that show as 100% in the chart?

I get things like 35 or 3500%?

I have played about endlessly changing values etc but just cant get it.

View 3 Replies View Related

Pivot Chart Using Data From More Than One Table

Dec 15, 2012

I need to create a Pivot Chart using the data from more than one table.

The main table has fields including 'Job name', 'task name' and 'hours worked'.

The second table (linked to the first by 'task name') has a field 'allocated hours'.

I would like to plot the 'total time worked' against 'allocated hours' (in a stacked bar style chart), in order to monitor time usage.

View 2 Replies View Related

Forms :: Access 2003 VBA / Unable To Tick Labels Property Of Axis Class

Dec 3, 2013

I have the following code:

Dim FrmGraphObj As Object
Set FrmGraphObj = Forms![frmE Weekly Efficiency]![gph_WeeklyEfficiency].Object.Application.Chart
FrmGraphObj.Axes(xlValue).TickLabels.NumberFormat = "0%"

I continually receive a runtime error 1004 " unable to get tick labels property of the axis class"

if I remove this code, then I error on the following code:

Dim FrmGraphObj As Object
Set FrmGraphObj = Forms![frmE Weekly Efficiency]![gph_WeeklyEfficiency].Object.Application.Chart
If FrmGraphObj.SeriesCollection(2).HasDataLabels Then

also a runtime 1004: "unable to get the seriescollection property of the chart class" on the last line above

searched this forum and found:

If your chart is in a form (or report), you have to:

1) refer to the form (or report) name (Form_Charts)

2) refer to the name of the object frame holding your chart (.Graph1)

3) refer to the object within the frame (.Object)

4) refer to the application that created the object (.Application)

5) refer to the actual chart itself (.Chart)

6) refer to the axes collection and select the axis you want to reference - in this case the category, or X-axis (.Axes(xlCategory))

I made the assumption, that I would just replace xlCategory with xlValue for the Y-axis. So I'm back to:

Set FrmGraphObj = Forms![frmE Weekly Efficiency]![gph_WeeklyEfficiency].Object.Application.Graph
With FrmGraphObj.Axes(xlValue)
.TickLabels.NumberFormat = "0%"
End With

Same error....

Looked in the Microsoft Graph Visual Basic Reference and it indicated:

"Tick-mark label text for the value axis is calculated based on the MajorUnit, MinimumScale, and MaximumScale properties of the value axis. To change the tick-mark label text for the value axis, you must change the values of these properties."

I reset my code to call these 2 functions prior to changing the number format.....

Public Sub txtMaxPercent_AfterUpdate()
Dim FrmGraphObj As Object
Set FrmGraphObj = Forms![frmE Weekly Efficiency]![gph_WeeklyEfficiency].Object.Application.Chart
FrmGraphObj.Axes(xlValue).MaximumScale = txtMaxPercent
End Sub
Public Sub txtMinPercent_AfterUpdate()
Dim FrmGraphObj As Object
Set FrmGraphObj = Forms![frmE Weekly Efficiency]![gph_WeeklyEfficiency].Object.Application.Chart
FrmGraphObj.Axes(xlValue).MinimumScale = txtMinPercent
End Sub

now I am receiving error 1004 again, this time it states "Unable to set the minimumscale property of the axis class" erroring on this line....

FrmGraphObj.Axes(xlValue).MinimumScale = txtMinPercent
debug.Print me.txtMinPercent
0.51

View 2 Replies View Related

How To Call/combine 2 Queries In Pivot Chart

Mar 28, 2008

Hello there,
I need help regarding how to use two queries in one pivot chart
I have 2 queries one for placed status and other for Not Placed Status

View 2 Replies View Related

Pivot Chart Legend & Lookup Table

Aug 14, 2006

Hi,
I have table (Table A) whose column (Column A) is a lookup table linked to Table B. Column A's type is of number. Table B has 2 columns. Column B1 is of type autonumber (set as primary). Column B2 is of type text. When I am populating Column A, I select from a drop down list which shows the values of Column B2. Column A will populate with what appears to be Column B2 values. However, whenever I create a chart with Column A, the values in the legend always show the numeric value of Column A, not the values of Column B2 as I want. This occurs in pivot charts as well. Here is an example:

In this case
Table A = A_Incident_Main_Table
Column A = A_Incident_Main_Table.System_Name

TRANSFORM Count(*) AS [Count]
SELECT (Format([Date],"mmm"" '""yy")) AS Expr1
FROM A_Incident_Main_Table
GROUP BY (Year([Date])*12+Month([Date])-1), (Format([Date],"mmm"" '""yy"))
PIVOT A_Incident_Main_Table.System_Name;

Here is another example:

SELECT A_Incident_Main_Table.System_Name, Count(*) AS [Count]
FROM A_Incident_Main_Table
GROUP BY A_Incident_Main_Table.System_Name;


A_Incident_Main_Table.System_Name is poplulated in with values from the lookup table (Table B). In both examples, I see only the numeric values in the legend, not the text values of Table B.

Any ideas on how to get around this?

View 1 Replies View Related

General :: Pivot Or Bar Chart - Cannot Find Details

Jan 24, 2015

I am using 2013 access and i cannot find a chart details i.e. pivot or bar charts. Therefore I have exported the information into an excel . if there is no charts functions on this access .

Is it possible to export the information yet the pivot chart stays in the excel so i don't have to keep creating the charts information.

View 2 Replies View Related







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