Forum Discussion

hpandersen's avatar
hpandersen
Frequent Visitor
7 years ago
Solved

Counting summed rows

Hi. I have a tabel with a lot of customer financial transactions. One customer can easily have 100 transactions per year. Example: Customer Year Amount 101 2018 250 101 2018 500...
  • Greg_Deckler's avatar
    Greg_Deckler
    7 years ago

    Yeah, it should be:

     

    Measure = 
    VAR __table = SUMMARIZE('Table',[Customer],[Year],"__TotalAmount",SUM([Amount]))
    RETURN
    COUNTX(FILTER(__table,[__TotalAmount]<1500 && [__TotalAmount]>1000),[Customer])