Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Calulating Weekly / Yearly Rejections

Hello All,   I need your help - Our team collects various weekly & yearly data and in this case the results can either be "Accepted or Rejected". Currently the raw data is retrieve from a Oracle da...
  • Greg_Deckler's avatar
    7 years ago

    Add a year column to your first table:

     

    Year = YEAR([Date])

    Then your second table becomes:

    Table4 = 
    VAR __count = COUNTROWS(ALL('Table3'))
    RETURN
    SUMMARIZE('Table3',[Year],[Action],"Year Qty",COUNTROWS('Table3'),"%",COUNTROWS('Table3')/__count)

    Your third table is simply a variation of this.