Excel Table Representation Query: 2 columns in the data set with dates which needs to be aligned to get right result.

harshM

New Member
Joined
Jul 1, 2023
Messages
1
Office Version
  1. 2019
Platform
  1. MacOS
Hello, I'm stuck with an Excel task and would really appreciate if someone can guide me in the right direction.

I have a dataset of active users for a Marketplace (fake numbers, obviously). The dataset has the following columns.

r/excel - Excel Table Representation Query: 2 columns in the data set with dates which needs to be aligned to get right result.


I want to create a table representation that depicts the weekly performance of new users with essential metrics, such as the ratio of postings to Weekly Active Users (WAU), all sorted by the dates of user acquisition and listing dates. Also, want to categorize by city for a better understanding of regional variations.

I have used pivot table and have the structure ready with all the essential metrics. However, since there are 2 dates (cohort_week and article_week) I'm either getting the count of num_users (WAU) wrong or an incorrect sum of num_article (postings). Can someone guide me what I'm doing wrong and direct me to a route I can take to overcome this issue? if you see the data, cohort_week is repeated per city inturn repeating the num_user. However, article_week keeps changing each row and also repeats per city which means the num_article needs to be filtered by article_week to get the sum per that particular article_week.Here's the pictorial depiction of a part of the data. The check column was added by me to use "if" statement to return true when cohort_week = article_week but it didn't help.
Copy of Home Assignment_SOM.xlsx
ABCDEF
1regioncohort_weeknum_userarticle_weeknum_articleCheck
2British Columbia2023-134822023-132,047True
3British Columbia2023-134822023-141,963False
4British Columbia2023-134822023-151,723False
5British Columbia2023-134822023-161,653False
6British Columbia2023-134822023-171,423False
7British Columbia2023-134822023-181,400False
8British Columbia2023-134822023-19920False
9British Columbia2023-134822023-20540False
10British Columbia2023-145532023-142,134True
11British Columbia2023-145532023-151,924False
12British Columbia2023-145532023-161,712False
13British Columbia2023-145532023-171,423False
14British Columbia2023-145532023-181,210False
15British Columbia2023-145532023-19750False
16British Columbia2023-145532023-20589False
17British Columbia2023-155762023-151,820True
18British Columbia2023-155762023-161,650False
19British Columbia2023-155762023-171,560False
20British Columbia2023-155762023-181,123False
21British Columbia2023-155762023-19920False
22British Columbia2023-155762023-20432False
23British Columbia2023-166272023-162,312True
24British Columbia2023-166272023-171,870False
25British Columbia2023-166272023-181,642False
26British Columbia2023-166272023-191,350False
27British Columbia2023-166272023-20970False
28British Columbia2023-176252023-172,310True
29British Columbia2023-176252023-181,850False
30British Columbia2023-176252023-191,467False
31British Columbia2023-176252023-201,048False
32British Columbia2023-187412023-182,389True
33British Columbia2023-187412023-191,917False
34British Columbia2023-187412023-201,542False
35British Columbia2023-197522023-191,340True
36British Columbia2023-197522023-202,412False
37British Columbia2023-208912023-202,089True
38New York2023-13552023-13267True
39New York2023-13552023-14217False
40New York2023-13552023-15175False
41New York2023-13552023-16130False
42New York2023-13552023-1750False
43New York2023-13552023-1821False
44New York2023-13552023-1913False
45New York2023-13552023-205False
46New York2023-141622023-14872True
47New York2023-141622023-15460False
48New York2023-141622023-16265False
49New York2023-141622023-17210False
50New York2023-141622023-18140False
51New York2023-141622023-19110False
52New York2023-141622023-2056False
53New York2023-151892023-15885True
54New York2023-151892023-16510False
55New York2023-151892023-17432False
56New York2023-151892023-18280False
57New York2023-151892023-19176False
58New York2023-151892023-20123False
59New York2023-161982023-16811True
60New York2023-161982023-17645False
61New York2023-161982023-18465False
62New York2023-161982023-19334False
63New York2023-161982023-20275False
64New York2023-172702023-171,123True
65New York2023-172702023-18843False
66New York2023-172702023-19723False
67New York2023-172702023-20376False
68New York2023-182112023-18940True
69New York2023-182112023-19734False
70New York2023-182112023-20410False
71New York2023-193352023-191,321True
72New York2023-193352023-201,111False
73New York2023-203482023-201,256True
74Ontario2023-132,7662023-139,911True
75Ontario2023-132,7662023-148,123False
76Ontario2023-132,7662023-156,570False
77Ontario2023-132,7662023-165,457False
78Ontario2023-132,7662023-174,321False
79Ontario2023-132,7662023-183,312False
80Ontario2023-132,7662023-193,110False
81Ontario2023-132,7662023-202,321False
82Ontario2023-142,3382023-148,991True
83Ontario2023-142,3382023-157,645False
84Ontario2023-142,3382023-165,421False
85Ontario2023-142,3382023-173,412False
86Ontario2023-142,3382023-182,456False
87Ontario2023-142,3382023-192,134False
88Ontario2023-142,3382023-201,742False
89Ontario2023-152,5032023-159,786True
90Ontario2023-152,5032023-168,543False
91Ontario2023-152,5032023-176,593False
92Ontario2023-152,5032023-185,111False
93Ontario2023-152,5032023-193,216False
94Ontario2023-152,5032023-202,213False
95Ontario2023-162,9592023-1611,236True
96Ontario2023-162,9592023-179,943False
97Ontario2023-162,9592023-187,543False
98Ontario2023-162,9592023-195,317False
99Ontario2023-162,9592023-203,157False
100Ontario2023-173,4372023-1713,456True
101Ontario2023-173,4372023-1811,125False
102Ontario2023-173,4372023-198,528False
103Ontario2023-173,4372023-205,789False
104Ontario2023-183,2252023-1812,673True
105Ontario2023-183,2252023-1910,987False
106Ontario2023-183,2252023-208,468False
107Ontario2023-193,5932023-1913,764True
108Ontario2023-193,5932023-2012,112False
109Ontario2023-203,7312023-2014,687True
DATA
Cell Formulas
RangeFormula
F2:F109F2=IF(B2=D2,"True","False")


Here's how my pivot table is looking:
Copy of Home Assignment_SOM.xlsx
ABCDEFGHIJ
1CheckTrue
2
3Column Labels
4British ColumbiaNew YorkOntario
5Row LabelsSum of num_userSum of num_articleSum of Posts:WAUSum of num_userSum of num_articleSum of Posts:WAUSum of num_userSum of num_articleSum of Posts:WAU
62023-1348220474552675276699114
72023-14553213441628725233889914
82023-15576182031898855250397864
92023-166272312419881142959112364
102023-1762523104270112343437134564
112023-187412389321194043225126734
122023-1975213402335132143593137644
132023-2089120892348125643731146874
right user #,wrong article #


With the check filter as True, I'm getting the right user count but incorrect sum of postings (new_article).

With the below method, I'm getting the right sum of postings but the user number keeps getting added up giving incorrect user_count.
Copy of Home Assignment_SOM.xlsx
ABCDEFGHIJ
1cohort_week(All)
2
3Column Labels
4British ColumbiaNew YorkOntario
5Row LabelsMin of num_userSum of num_articleSum of Postings:WAUMin of num_userSum of num_articleSum of Postings:WAUMin of num_userSum of num_articleSum of Postings:WAU
62023-1348220474552675276699114
72023-144824097455108952338171143
82023-154825467355152042338240013
92023-164827327355171632338306573
102023-174828586355246032338377253
112023-184829614355268922338422202
122023-194828664255341122338470562
132023-204829622255361222338504892
right article #,wrong user #


fyi - the postings:WAU is a calculated field I created in pivot table to show the ratio of postings (num_article)/WAU(num_user in a particular cohort_week).
Do I need to filter the original data before creating pivot. If so how? or what's the best possible solution? Really appreciate the time and guidance folks.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe like this, correcting the number of users.
regioncohort_weeknum_userarticle_weeknum_articleCount Users
British Columbia2023-134822023-132047482
British Columbia2023-134822023-1419630
British Columbia2023-134822023-1517230
British Columbia2023-134822023-1616530
British Columbia2023-134822023-1714230
British Columbia2023-134822023-1814000
British Columbia2023-134822023-199200
British Columbia2023-134822023-205400
British Columbia2023-145532023-142134553
British Columbia2023-145532023-1519240
British Columbia2023-145532023-1617120
British Columbia2023-145532023-1714230
British Columbia2023-145532023-1812100
British Columbia2023-145532023-197500
British Columbia2023-145532023-205890
British Columbia2023-155762023-151820576
British Columbia2023-155762023-1616500
British Columbia2023-155762023-1715600
British Columbia2023-155762023-1811230
British Columbia2023-155762023-199200
British Columbia2023-155762023-204320
British Columbia2023-166272023-162312627
British Columbia2023-166272023-1718700
British Columbia2023-166272023-1816420
British Columbia2023-166272023-1913500
British Columbia2023-166272023-209700
British Columbia2023-176252023-172310625
British Columbia2023-176252023-1818500
British Columbia2023-176252023-1914670
British Columbia2023-176252023-2010480
British Columbia2023-187412023-182389741
British Columbia2023-187412023-1919170
British Columbia2023-187412023-2015420
British Columbia2023-197522023-191340752
British Columbia2023-197522023-2024120
British Columbia2023-208912023-202089891
New York2023-13552023-1326755
New York2023-13552023-142170
New York2023-13552023-151750
New York2023-13552023-161300
New York2023-13552023-17500
New York2023-13552023-18210
New York2023-13552023-19130
New York2023-13552023-2050
New York2023-141622023-14872162
New York2023-141622023-154600
New York2023-141622023-162650
New York2023-141622023-172100
New York2023-141622023-181400
New York2023-141622023-191100
New York2023-141622023-20560
New York2023-151892023-15885189
New York2023-151892023-165100
New York2023-151892023-174320
New York2023-151892023-182800
New York2023-151892023-191760
New York2023-151892023-201230
New York2023-161982023-16811198
New York2023-161982023-176450
New York2023-161982023-184650
New York2023-161982023-193340
New York2023-161982023-202750
New York2023-172702023-171123270
New York2023-172702023-188430
New York2023-172702023-197230
New York2023-172702023-203760
New York2023-182112023-18940211
New York2023-182112023-197340
New York2023-182112023-204100
New York2023-193352023-191321335
New York2023-193352023-2011110
New York2023-203482023-201256348
Ontario2023-1327662023-1399112766
Ontario2023-1327662023-1481230
Ontario2023-1327662023-1565700
Ontario2023-1327662023-1654570
Ontario2023-1327662023-1743210
Ontario2023-1327662023-1833120
Ontario2023-1327662023-1931100
Ontario2023-1327662023-2023210
Ontario2023-1423382023-1489912338
Ontario2023-1423382023-1576450
Ontario2023-1423382023-1654210
Ontario2023-1423382023-1734120
Ontario2023-1423382023-1824560
Ontario2023-1423382023-1921340
Ontario2023-1423382023-2017420
Ontario2023-1525032023-1597862503
Ontario2023-1525032023-1685430
Ontario2023-1525032023-1765930
Ontario2023-1525032023-1851110
Ontario2023-1525032023-1932160
Ontario2023-1525032023-2022130
Ontario2023-1629592023-16112362959
Ontario2023-1629592023-1799430
Ontario2023-1629592023-1875430
Ontario2023-1629592023-1953170
Ontario2023-1629592023-2031570
Ontario2023-1734372023-17134563437
Ontario2023-1734372023-18111250
Ontario2023-1734372023-1985280
Ontario2023-1734372023-2057890
Ontario2023-1832252023-18126733225
Ontario2023-1832252023-19109870
Ontario2023-1832252023-2084680
Ontario2023-1935932023-19137643593
Ontario2023-1935932023-20121120
Ontario2023-2037312023-20146873731


Row LabelsSum of Count UsersSum of num_article
British Columbia5.24755.424
2023-1348211.669
2023-145539.742
2023-155767.505
2023-166278.144
2023-176256.675
2023-187415.848
2023-197523.752
2023-208912.089
New York1.76816.764
2023-1355878
2023-141622.113
2023-151892.406
2023-161982.530
2023-172703.065
2023-182112.084
2023-193352.432
2023-203481.256
Ontario24.552259.173
2023-132.76643.125
2023-142.33831.801
2023-152.50335.462
2023-162.95937.196
2023-173.43738.898
2023-183.22532.128
2023-193.59325.876
2023-203.73114.687
Grand Total31.567331.361
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top