Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 43
Default Charts with data from MS Query

I'm using MS Query to retrieve data from a SQL Database and once in Excel I
create new columns to calculate lets say "cost" by multiplying one of the
retrieved columns by a constant, since the amount of data retrieved (rows)
with the query changes (depends on criteria that I set up on the Query), the
rows on the new columns should change too, and I don't want #REF! cells, I'm
using the next formula to calculate the new values on the new column
=IF(ISBLANK(AH2),"",AH2*0.075/AL2). Now I have charts that show the values
retrieved with the Query and charts that show the values of the new columns.
Everything goes fine with the charts for the data retrieved with the Query,
when the amount of data (rows) changes, the amound of data shown in the chart
changes too, but the proble that I facing now is that the charts for the new
columns show the values ok just the first time I retrieve data with the
Query, next time I pull data using a different criteria in the Query, the
charts for the new column show just up to the last values from the previous
selection. In other words, runing the query, lets say I retrieve 20 raws,
then I calculate the new 20 rows using the formula above and these values are
shown in the charts, but if my next selection on the Query retrieves, let say
30 raws, my charts for the original dat is 30, fine; but my chart for the
calculated rows shows just 20 values.

Any help will it be appreciated
--
Cesar
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2,344
Default Charts with data from MS Query

Hi,

At least one approach would be to use Dynamic Range Names, here is a step by
step example of how to do that:


http://peltiertech.com/WordPress/200...t-source-data/

--
Thanks,
Shane Devenshire


"Cesar" wrote:

I'm using MS Query to retrieve data from a SQL Database and once in Excel I
create new columns to calculate lets say "cost" by multiplying one of the
retrieved columns by a constant, since the amount of data retrieved (rows)
with the query changes (depends on criteria that I set up on the Query), the
rows on the new columns should change too, and I don't want #REF! cells, I'm
using the next formula to calculate the new values on the new column
=IF(ISBLANK(AH2),"",AH2*0.075/AL2). Now I have charts that show the values
retrieved with the Query and charts that show the values of the new columns.
Everything goes fine with the charts for the data retrieved with the Query,
when the amount of data (rows) changes, the amound of data shown in the chart
changes too, but the proble that I facing now is that the charts for the new
columns show the values ok just the first time I retrieve data with the
Query, next time I pull data using a different criteria in the Query, the
charts for the new column show just up to the last values from the previous
selection. In other words, runing the query, lets say I retrieve 20 raws,
then I calculate the new 20 rows using the formula above and these values are
shown in the charts, but if my next selection on the Query retrieves, let say
30 raws, my charts for the original dat is 30, fine; but my chart for the
calculated rows shows just 20 values.

Any help will it be appreciated
--
Cesar

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool bar: Data/Import external data/New database query Daniel Setting up and Configuration of Excel 3 February 28th 08 08:40 AM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Copy old Data from web query while keeping previous days data DRobidoux Excel Worksheet Functions 0 March 22nd 06 01:56 PM
Save data retreived from query without saving query Anthony Excel Discussion (Misc queries) 0 January 25th 06 07:17 PM
Charts not recognizing source data if original linked data is changed. JLC Charts and Charting in Excel 3 October 14th 05 01:29 AM


All times are GMT +1. The time now is 10:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"