Since you did not indicate where your data came from.
I assume that your data is stored in an SQL database, you can use the partition counter or the number of columns row_number to achieve these results.
Concluding the decision provided by Jerry, the column "Number of Users" can be achieved as follows from SQL
case when row_number() over (partition by Week order by Users) = 1 then 1 else 0 end as [Unique?]
So, this is actually a bit more, first splits the result set into a separate week, orders the Users column and assigns a sequential identifier to each row in the sections. We basically filter out line number 1 in each section.
If the data does not come from SQL, ignore it.
source share