Skip to main content
Announcements
Join us on Sept. 17 to hear how our new GenAI Assistant empowers data professionals: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
tomdon14
Contributor III
Contributor III

Nested Aggregation and Filters

Hello –

I’m trying to create a calculation which will display for a specific month (Aug-2022). The calculation uses a nested aggregation. It calculates correctly if “Aug-2022” is selected in the Filter pane. However, if “Aug-2022” is removed from the filter, the calculation results in 0 (zero). Any idea what I am doing wrong? Thanks.

sum({<YearMonth = {'Aug-2022'}>}

  Aggr(

    sum({<YearMonth = {'Aug-2022'}>}

      aggr(

          if(FullDate = date(Min({<YearMonth=,COMR_LATENESS_FLAG_LABEL= {'Late'} >} TOTAL <CASE_AER_NUMBER_VERSION> date#(FullDate,'DD-MMM-YYYY')   ),'DD-MMM-YYYY')

          ,1)

      ,COMR_PROCESS_POINT, CASE_AER_NUMBER_VERSION, FullDate)

      )

  ,YearMonth)

)

 

Labels (1)
0 Replies