Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Using SUMX() to Count Values within Varying Periods (Quarters and Years)

I need to have a count of member accounts which have spent more than $90 in restaurant charges for a given quarter.    I have a table called FBChecks which lists all the checks at our restaurant ou...
  • Ashish_Mathur's avatar
    Ashish_Mathur
    9 years ago

    Hi Anonymous,

     

    Try this formula

     

    =COUNTROWS(FILTER(SUMMARIZE(FILTER(FBChecks,FBChecks[check_member_type]="Comprehensive"||FBChecks[check_member_type]="Social"),FBChecks[member_id],"ABCD",SUM(FBChecks[amount])),[ABCD]>90))

    Hope this helps.