Forum Discussion

vitoraraujo's avatar
vitoraraujo
Frequent Visitor
9 years ago
Solved

Monthly KPI's

  Hi there.   I want to create a monthly report that shows me some KPI's, from the data pulled from our database about the players.   I have this Table called IAPs (In App Purchases) ...
  • vitoraraujo's avatar
    vitoraraujo
    9 years ago

    Hi v-qiuyu-msft

    I managed to solve this issue, your inclination was ritgh, the final formula that sucessfully calculates the Cohort KPI is the following:

    buyers per month = CALCULATE(DISTINCTCOUNT(IAPs[player]),ALLEXCEPT(IAPs,IAPs[player date created mensal], IAPs[month cohort]), IAPs[DATECREATED (bins)]>= EARLIER(IAPs[DATECREATED (bins)]))

    Then I just divided buyers per month by the new players that entered that month and obtained the correct answer : 


     

     I used to think that the data should decrease as the month cohort raised, that thought is correct although that's not the proper way to calculate it. The values should decrease as the DATECREATED (the date of the events; i.e. the actual Time, with capital T) passes.