Multiple year data displayed chronologically

WxShady13

Board Regular
Joined
Jul 24, 2018
Messages
77
HELP!!! I have several years worth of data (i.e. Headcount, Terminations, etc.) all on the same table with a single date field. When I sort by Months obviously it will group all months data together and not distinguish by year. I need to actually display the data by week and if possible not make use of a Year slicer (i.e. just a rolling 12 months worth of data by week.) Right now when it is displayed I cannot get the visual (line graph) to distinguish between years, and stay within the confines of the visual (it pops up a scroll bar at the bottom). What can I do?
 

Attachments

CSmith

Active Member
Joined
Jan 13, 2020
Messages
253
Office Version
365, 2010, 2007
Platform
Windows, Mobile, Web
Create a column concatenated Year&Week use that to sort it will always group by week of year and stay chronological...
 

WxShady13

Board Regular
Joined
Jul 24, 2018
Messages
77
The problem with doing that is it runs everything together (i.e. 201953). Is there a way to set it up where it would look like 2019-53 or can I now use it to sort the Week Number?
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
3,786
merge these columns with delimiter -
PowerPivot
=[Year]&"-"&[Week]
or
PowerQuery
#"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(Source, {{"Year", type text}, {"Week", type text}}, "en-GB"),{"Year", "Week"},Combiner.CombineTextByDelimiter("-", QuoteStyle.None),"YW")
 
Last edited:

CSmith

Active Member
Joined
Jan 13, 2020
Messages
253
Office Version
365, 2010, 2007
Platform
Windows, Mobile, Web
=YEAR&"-"&WEEK

It will still sort without the '-'
 

WxShady13

Board Regular
Joined
Jul 24, 2018
Messages
77
Sandy and CSmith thank you both for your help. The problem when I merge the columns is it still displays wrong. Also how do I avoid the scroll bar appearing?
 

Attachments

CSmith

Active Member
Joined
Jan 13, 2020
Messages
253
Office Version
365, 2010, 2007
Platform
Windows, Mobile, Web
with your setup you need this =YEAR&"-"&RIGHT("0"&WEEK,2)
And scroll bar is dependant on amount of data points... Not sure what you want smaller chart or?
 

WxShady13

Board Regular
Joined
Jul 24, 2018
Messages
77
Thank you...I figured out why the order was wrong (I was not sorting by Year Week). As for data points I need to display a rolling 12 month timeframe. I have a column that determines what week # should display. I am space limited on this page and the customer does not want another page. I didnt know if there was a way to force the visual not to extend beyond the confines so that a scroll bar doesnt show, rather all the data is contained within the visual.
 

Forum statistics

Threads
1,081,950
Messages
5,362,334
Members
400,673
Latest member
mikansang

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top