Very new to Amplitude … I am trying to do something along these lines: TOTALS(B)/PROPCOUNT(A)
where A is Event A Group By product_id AND UserID and B is Event A; but PropCount only considers the first item in a Group By. In PostGres, I could write the same thing as <strong>select </strong>(<strong>count</strong>(*)*1.0/<strong>count</strong>(<strong>distinct</strong> <strong>concat</strong>(product_id, UserID)))::<strong>decimal</strong> as metric <strong>from</strong> event_a;
, but I have been tasked with writing this in Amplitude. Is there any way to do this in Amplitude? I am looking for the average number of times users visit each product page.
Thanks in advance.