Create chart based upon last row of table
I have a graph which needs to be based upon the last row of a table
The table is updated daily, where we append the latest values to the bottom of the chart (and we archive monthly). I'd like to not have to update the graph each time I update the table
An example table is
Date Car Bike Walk
2 days ago 33 22 14
1 day ago 30 12 18
Today 38 33 22
The date column actually has real dates, but I've set up this way to show intent.
I run manual reports which shows me the state of each category (column) over time. However, for my dashboard, I only want to see the bottom row (which is also the most current).
This isn't valid, but something like
Chart data range: =MySheet!LastRow($A):LastRow($F)
This makes Excel throw an error
=MySheet!$A$MIN(ROW(rng))+ROWS(rng)-1:$F$MIN(ROW(rng))+ROWS(rng)-1
Is this possible in Excel?
microsoft-excel
add a comment |
I have a graph which needs to be based upon the last row of a table
The table is updated daily, where we append the latest values to the bottom of the chart (and we archive monthly). I'd like to not have to update the graph each time I update the table
An example table is
Date Car Bike Walk
2 days ago 33 22 14
1 day ago 30 12 18
Today 38 33 22
The date column actually has real dates, but I've set up this way to show intent.
I run manual reports which shows me the state of each category (column) over time. However, for my dashboard, I only want to see the bottom row (which is also the most current).
This isn't valid, but something like
Chart data range: =MySheet!LastRow($A):LastRow($F)
This makes Excel throw an error
=MySheet!$A$MIN(ROW(rng))+ROWS(rng)-1:$F$MIN(ROW(rng))+ROWS(rng)-1
Is this possible in Excel?
microsoft-excel
add a comment |
I have a graph which needs to be based upon the last row of a table
The table is updated daily, where we append the latest values to the bottom of the chart (and we archive monthly). I'd like to not have to update the graph each time I update the table
An example table is
Date Car Bike Walk
2 days ago 33 22 14
1 day ago 30 12 18
Today 38 33 22
The date column actually has real dates, but I've set up this way to show intent.
I run manual reports which shows me the state of each category (column) over time. However, for my dashboard, I only want to see the bottom row (which is also the most current).
This isn't valid, but something like
Chart data range: =MySheet!LastRow($A):LastRow($F)
This makes Excel throw an error
=MySheet!$A$MIN(ROW(rng))+ROWS(rng)-1:$F$MIN(ROW(rng))+ROWS(rng)-1
Is this possible in Excel?
microsoft-excel
I have a graph which needs to be based upon the last row of a table
The table is updated daily, where we append the latest values to the bottom of the chart (and we archive monthly). I'd like to not have to update the graph each time I update the table
An example table is
Date Car Bike Walk
2 days ago 33 22 14
1 day ago 30 12 18
Today 38 33 22
The date column actually has real dates, but I've set up this way to show intent.
I run manual reports which shows me the state of each category (column) over time. However, for my dashboard, I only want to see the bottom row (which is also the most current).
This isn't valid, but something like
Chart data range: =MySheet!LastRow($A):LastRow($F)
This makes Excel throw an error
=MySheet!$A$MIN(ROW(rng))+ROWS(rng)-1:$F$MIN(ROW(rng))+ROWS(rng)-1
Is this possible in Excel?
microsoft-excel
microsoft-excel
asked Feb 15 at 11:37
MyDaftQuestionsMyDaftQuestions
48541844
48541844
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The table is updated daily, where we append the latest values to the bottom of the chart
If you sorted your data in the opposite order (most recent date at the top) then you'd always know that today's data was on row one.
You could consider any of these approaches-
Store the data in reverse order. Change the update process so you insert each day's numbers on a new line at the top of the list.
Keep the data stored as they are now, but re-sort (descending) on the date field just before you refresh your chart, then re-sort back to the original order. This could be scripted in VBA pretty easily (you mention you are using Excel).
I suspect you could use your existing data table as a data source for PowerQuery, and use PQ to pull out the final row using a "date=max(date)" type query, then use that as your chart data source.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1406061%2fcreate-chart-based-upon-last-row-of-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The table is updated daily, where we append the latest values to the bottom of the chart
If you sorted your data in the opposite order (most recent date at the top) then you'd always know that today's data was on row one.
You could consider any of these approaches-
Store the data in reverse order. Change the update process so you insert each day's numbers on a new line at the top of the list.
Keep the data stored as they are now, but re-sort (descending) on the date field just before you refresh your chart, then re-sort back to the original order. This could be scripted in VBA pretty easily (you mention you are using Excel).
I suspect you could use your existing data table as a data source for PowerQuery, and use PQ to pull out the final row using a "date=max(date)" type query, then use that as your chart data source.
add a comment |
The table is updated daily, where we append the latest values to the bottom of the chart
If you sorted your data in the opposite order (most recent date at the top) then you'd always know that today's data was on row one.
You could consider any of these approaches-
Store the data in reverse order. Change the update process so you insert each day's numbers on a new line at the top of the list.
Keep the data stored as they are now, but re-sort (descending) on the date field just before you refresh your chart, then re-sort back to the original order. This could be scripted in VBA pretty easily (you mention you are using Excel).
I suspect you could use your existing data table as a data source for PowerQuery, and use PQ to pull out the final row using a "date=max(date)" type query, then use that as your chart data source.
add a comment |
The table is updated daily, where we append the latest values to the bottom of the chart
If you sorted your data in the opposite order (most recent date at the top) then you'd always know that today's data was on row one.
You could consider any of these approaches-
Store the data in reverse order. Change the update process so you insert each day's numbers on a new line at the top of the list.
Keep the data stored as they are now, but re-sort (descending) on the date field just before you refresh your chart, then re-sort back to the original order. This could be scripted in VBA pretty easily (you mention you are using Excel).
I suspect you could use your existing data table as a data source for PowerQuery, and use PQ to pull out the final row using a "date=max(date)" type query, then use that as your chart data source.
The table is updated daily, where we append the latest values to the bottom of the chart
If you sorted your data in the opposite order (most recent date at the top) then you'd always know that today's data was on row one.
You could consider any of these approaches-
Store the data in reverse order. Change the update process so you insert each day's numbers on a new line at the top of the list.
Keep the data stored as they are now, but re-sort (descending) on the date field just before you refresh your chart, then re-sort back to the original order. This could be scripted in VBA pretty easily (you mention you are using Excel).
I suspect you could use your existing data table as a data source for PowerQuery, and use PQ to pull out the final row using a "date=max(date)" type query, then use that as your chart data source.
answered Feb 15 at 12:02
IncansIncans
163
163
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1406061%2fcreate-chart-based-upon-last-row-of-table%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown