Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Subtotal isn't adding up correctly

Hi all,  We are looking for a measure that finds new customers per month. To do this we are looking at the sales 12 months prior. Whenever a customer has no sales for 12 months and has sales the 1...
  • Akash_Varuna's avatar
    1 year ago

    Hi Anonymous It might be because the measure NewCustomerCount_Monthly evaluates subtotals in the overall context instead of summing individual rows, leading to incorrect aggregation. To fix this, use SUMX to explicitly iterate and sum the row-level results.