Sep 22 2024 09:44 PM
Hi there,
I analyse ticket sales data and want to be able to see, from historical sales-by-day data, the average % of total sales on any given number of days prior to the show.
I've put the sales data into one workbook as different sheets, formatted identically. Say column I is the 'days prior' and column J is the % of total sales. E.g. I150 (value 130) corresponds to J150 (value 5.0%).
On a summary page I want to see the avg % of total ticket sales (averaged from every sheet) for that specific 'day prior'.
Later I'll want to see by year, by location, etc. but for now that's where I'm stuck.
Advice appreciated.
Sep 22 2024 09:55 PM
@kf233 What exactly and why are you putting data in separate sheets? Data analysis becomes much easier if you collect all data in one data table/list. Can you share a file with some example data, by posting a link giving full access to it on OneDrive or similar? Remove any private and confidential information though and specify the results you want to achieve.
Sep 22 2024 10:12 PM
Sep 22 2024 11:43 PM
OK, I understand. Assuming that you can add two columns to the event tables (Event number and Year), you can easily combine all events in one larger table. Automate it with Power Query or Copy/Paste manually if there aren't that many events. Whatever is easier for you.
Anyhow, you'll create a table like in the attached file which you can then analyze with a pivot table. Note that I just copied Event 1 three times into a new table numbering them 1, 2 and 3.
Sep 23 2024 12:17 AM
@Riny_van_Eekelen that is fantastic, thank you!!
Sep 23 2024 03:43 AM
If you prefer a formula to copy/paste, something like
= VSTACK(
EXPAND("",30,2,""),
HSTACK(Event1tbl[% Sold], Event2tbl[% Sold])
)
would bring across a couple of columns and move them down to align the days out.