Forum Discussion

leahschneider's avatar
leahschneider
Icon for Helper III rankHelper III
3 years ago

Count Rows where not in Previous Period

I have a visual that sums total sales for a product category over time. For each period (usually month), I would like to sum the total number of product categories that aren't in the previous period. 

Example Raw Data:

DateCategoryProductTotal
31-JanElectronicsWatch43
31-JanClothesShirt254
31-JanClothesHat478
31-JanMiscGiftcard2
28-FebGearBike24
28-FebGearHelmet3
28-FebElectronicsWatch25
28-FebClothesShirt576
31-MarGearBike15
31-MarElectronicsWatch3
31-MarMiscGiftcard1

 

Desired Results:

DateNew Category CountExplanation
31-Jan The first date doesn't matter. It can also say 4.
28-Feb1Gear is not in January products.
31-Mar1Misc is not in February products. It is in January, but that should not affect this calculation.

 

 

I do not know why this doesn't let me make tables that are usable looking. This is a picture of what I have and what I want:

 

2 Replies

    • leahschneider's avatar
      leahschneider
      Icon for Helper III rankHelper III

      Thank you this is very helpful. I had wanted count and not concat but that's pretty easy to fix. My only issue with this is that it's not possible to group up. If I want to add quarter or year to the table, it won't work correctly on quarter or year.