{
  "tables": {
    "Newcomers": "Fact. One row per first action, activation, active days in week 1, events band, collaboration flag and maintainer, with the newcomers in it and those still active in week 13. September cohort, automation set aside.",
    "Maintainers": "Dimension. One row per maintainer code: Maintainer 01 to Maintainer 10, Other maintainers, and No work on others' repositories.",
    "EventsBands": "Dimension. One row per band of first-week events, with its order and bounds.",
    "Access": "Security. One row per sign-in allowed to see one maintainer's rows; read only by the maintainer role.",
    "Candidates": "Summary. One row per candidate North Star number, with its ranking score and interval.",
    "Funnel": "Summary. One row per funnel step, for the whole cohort.",
    "Inputs": "Summary. One row per first-week habit, with its retention difference within active-day groups.",
    "DailyActive": "Summary. One row per day read, with the cohort members active that day."
  },
  "relationships": [
    [
      "Newcomers",
      "maintainer",
      "Maintainers",
      "maintainer"
    ],
    [
      "Newcomers",
      "events_band",
      "EventsBands",
      "events_band"
    ]
  ],
  "measures": [
    {
      "table": "Newcomers",
      "name": "New accounts",
      "dax": "SUM(Newcomers[accounts])",
      "format": "#,0",
      "description": "New accounts in the selection: first public event on the cohort day, automation set aside."
    },
    {
      "table": "Newcomers",
      "name": "Still active in week 13",
      "dax": "SUM(Newcomers[retained])",
      "format": "#,0",
      "description": "Newcomers with a public event other than a star on days 84 to 90 after their first."
    },
    {
      "table": "Newcomers",
      "name": "Week-13 retention",
      "dax": "DIVIDE([Still active in week 13], [New accounts])",
      "format": "0.0%",
      "description": "Still active in week 13 divided by new accounts: the outcome every number here is scored against."
    },
    {
      "table": "Newcomers",
      "name": "Activation rate",
      "dax": "DIVIDE(COALESCE(CALCULATE([New accounts], KEEPFILTERS(Newcomers[activation] = \"Activated\")), 0), [New accounts])",
      "format": "0.0%",
      "description": "Share of newcomers active on 2 or more days of week 1 with at least one making event (a push, an opened pull request or issue, or a new repository), within the selection: the activation filter is kept and an empty count reads as zero, so selecting Not activated reads 0%; an empty selection stays blank."
    },
    {
      "table": "Newcomers",
      "name": "Active on 2 or more days",
      "dax": "DIVIDE(COALESCE(CALCULATE([New accounts], KEEPFILTERS(Newcomers[active_days] >= 2)), 0), [New accounts])",
      "format": "0.0%",
      "description": "The dashboard's top number: the share of newcomers active on 2 or more days of week 1, the first key of the ranking. Not yet a target: it has not been shown to move with retention across sign-up days."
    },
    {
      "table": "Candidates",
      "name": "Ranking score",
      "dax": "MAX(Candidates[ranking_score])",
      "format": "0",
      "description": "The AUC times 100: of 100 pairs of one newcomer still active in week 13 and one gone, how many the number ranks the stayer higher, a tie counting half. 50 is a coin toss."
    },
    {
      "table": "Funnel",
      "name": "Funnel accounts",
      "dax": "SUM(Funnel[accounts])",
      "format": "#,0",
      "description": "Newcomers reaching the funnel step, whole cohort."
    },
    {
      "table": "Inputs",
      "name": "Retention difference (points)",
      "dax": "MAX(Inputs[std_diff_points])",
      "format": "+0.0;-0.0;0.0",
      "description": "Week-13 retention of newcomers who did the habit minus those who did not, in percentage points, compared within groups of the same active days and averaged. An association."
    },
    {
      "table": "DailyActive",
      "name": "Active newcomers",
      "dax": "SUM(DailyActive[active_accounts])",
      "format": "#,0",
      "description": "Cohort members with a public event on the day."
    }
  ],
  "roles": [
    {
      "name": "Executive",
      "audience": "A product executive: every row, no filter.",
      "filters": {},
      "description": "Every row of every table. No row filter."
    },
    {
      "name": "Maintainer (own rows)",
      "audience": "One maintainer, such as an organisation's community team: its own newcomer rows; the cohort-wide summaries stay whole as a benchmark.",
      "filters": {
        "Maintainers": "Maintainers[maintainer] = LOOKUPVALUE(Access[maintainer], Access[user], USERPRINCIPALNAME())",
        "Access": "Access[user] = USERPRINCIPALNAME()"
      },
      "description": "Rows of the signed-in maintainer only, through the Access table. Filters Maintainers, and through the relationship the Newcomers fact; the cohort-wide summary tables stay whole."
    }
  ],
  "titles": {
    "north_star": "Week-13 activity by first-week active days, for the newcomers in view",
    "tie_break": "Week-13 activity by first-week events, the tie-break, for the newcomers in view",
    "candidates": "Whole September cohort: active days with event ties rank stayers best, stars given fall below a coin toss",
    "funnel": "Whole September cohort: the second day loses most newcomers",
    "inputs": "Whole September cohort: pushing code to an own repository goes with staying the most",
    "daily": "Whole September cohort: newcomer activity falls after the first day and stays low in week 13"
  }
}
