Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Counting Daily New Subscribers

Hi,

 

I have 3 tables

 

1. A customer table that contains details of all customers

2. A Subscription table that contains ONLY customer on our subscription plan.

3. A transaction table that contains all customer transactions.

 

The customer ID links all three tables.

 

The subscription is renewed every month through an auto debit on the customer's account and this transaction is registered both on the transaction table and the subscription table.

 

The team would like to track each new subscriber to the bundle daily. We have multiple renewals daily but we to count new subscribers to the subscription ONLY.

 

We may have a new customer that is transacting but isn't subscribed to the bundle yet. What i want to do is count each first time subscriber to the bundle irrespective of when you became a customer. So each time a subscription transaction hits the transaction table it checks to see if that number is already subscribed, If yes; It doesnt count, If no it counts.

 

Tired DISTINCTCOUNT but dosnt count correctly.

5 Replies

  • i do not understand the requirement fully, let me be upfront about this, however, you can use the RELATED function to determine if a customer in the transaction table has a subscription for that specific entry when you do the analysis. this will give you the 0, 1 scenario. when you create the subscription based on your tables all the entries will be true for that customer.

     

    Subscribed Column = RELATED('SubscriptionsTable'[BundleColum]')

     

    the requirement however almost seems like it is operational at the transaction level rather than analysis (unless you wish to use the power bi service), then again i did mention i do not fully understand. - just a thought.

     

    below the red are customers in the transaction table but no bundles assigned in subscriptions table

  • Anonymous 

     

    I just created two simple tables.

     

    Subscription

    Transaction

    Then you create measures

    trans not sub = 
    VAR tbl= SUMMARIZE(FILTER('transaction','transaction'[customer]<>RELATED(subscription[customer])),'transaction'[customer])
    return COUNTROWS(tbl)
    
    trans and sub = 
    VAR tbl= SUMMARIZE(FILTER('transaction','transaction'[customer]=RELATED(subscription[customer])),'transaction'[customer])
    return COUNTROWS(tbl)

    Hope this is helpful.

     

    • stevedep's avatar
      stevedep
      Icon for Memorable Member rankMemorable Member

      Which fields do you have in your tables

      ?

  • v-lionel-msft's avatar
    v-lionel-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    Please give the example data of the three tables so that we can help you quickly and accurately.

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.