Results 1 to 15 of 15
  1. #1
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9

    Question create a chart from query, problem with correct display

    Hallo Comunity,
    I have a prblem with the creation of a chart in a report.
    Attached you find the file Datenabfrage0.png which display the dta from my query..
    the second file Datenabfrage.png shows the chart which should be displayed in the report. This chart was created with excel after export of the data.
    So should the graph look like.
    I tried to get the same thing in Access in a report, but I failed miserably.
    Somehow, all values ​​are always set to 1 and form a line.


    Can someone help me to pass the challenge?

    Click image for larger version. 

Name:	Datenabfrage0.png 
Views:	18 
Size:	13.5 KB 
ID:	18021

    Click image for larger version. 

Name:	Datenabfrage.png 
Views:	18 
Size:	93.9 KB 
ID:	18022

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I analyse graph issues best when I can work with the data. If you want to provide file, follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9
    Hi June7,
    thank you for your support, attached is the db.
    The Query "Messwertverfolgung" contains the data.Geraetedb.zip

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    It seems it is graphed correctly. Field2 is 6,7 for everyone in data AND graph. Same with Field3.

  5. #5
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9
    Yes you are right but the graph you see is maked with excel, i want to have it in an access report, but with the build in chartmaker in access i dont get the same result.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Would have been nice if you included the attempted chart in the database.

    What table or query is that data from?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9
    The Data is only copy and paste from the query "messwertverfolgung" to an excelsheet.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Odd query. Why is Messwerte table included but not joined to other tables? This results in a Cartesian relation of records. The result is two records for every Messwerte ID.

    I don't read German. What is this data? Multiple similar name fields indicates a non-normalized data structure. What are Wert1, Wert2, etc and Feld1, Feld2, etc for?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I was able to build Line and XY Scatter charts with the following RowSource:

    SELECT Messwerte.ID, Messwerte.Feld1, Messwerte.Feld2, Messwerte.Feld3
    FROM Messwerte
    WHERE (((Messwerte.Prüfschritt)="Widerstand1"));

    The ID field is the X-axis values. Don't know how useful ID as X value is. What are you trying to analyze?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  10. #10
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9
    The chart you can see in my first post is a quality control chart with upper and lower control limits.
    ID is the number of the teststep and not relevant.

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Need a field for the X-axis scale.

    How did you produce that chart in Excel?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  12. #12
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9
    I found the excel file:Messwertverfolgung.zip

  13. #13
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The X-axis is just a numerical sequence of 1-54, and it adjusts as rows are added/deleted in the data range. This is an option setting of the axis format. Access chart does not have this feature. A field must provide the axis values. I used the autonumber ID field. Replicating the Excel sequence requires 2 queries.

    Query 1:
    SELECT * FROM Messwerte WHERE (((Messwerte.Prüfschritt)="Widerstand1"));

    Graph RowSource:
    SELECT DCount("*","Query1","ID<=" & [ID]) AS Seq, Feld1, Feld2, Feld3 FROM Query1;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  14. #14
    daywalker0086 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    9
    Thank you for your Help.
    i have one more problem:
    Attached you can see the graph and the datatable.
    The Values in the graph are not sorted in the x-axis, lik ein the table ( 1,2,3,4,5,...)
    I have not foun dany option where I can select the right sorting.
    Do you have a solution for it?
    Thanks in advance.
    Click image for larger version. 

Name:	dataproblem1.png 
Views:	7 
Size:	27.8 KB 
ID:	19001Click image for larger version. 

Name:	dataproblem2.png 
Views:	7 
Size:	10.0 KB 
ID:	19002

  15. #15
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The sorting is following alpha rules because the data is text, not numeric. In alpha sort 11 comes before 2. Need placeholder 0: 01, 02, ... 11, 12.

    Easiest fix is to change the Seq field to a number type.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 09-12-2014, 06:41 AM
  2. Replies: 9
    Last Post: 01-29-2013, 06:44 PM
  3. Replies: 2
    Last Post: 01-17-2013, 01:25 AM
  4. Replies: 2
    Last Post: 11-19-2012, 10:54 AM
  5. Replies: 2
    Last Post: 05-01-2012, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums