Forum Discussion

Rodney2485's avatar
Rodney2485
Brass Contributor
Oct 05, 2024
Solved

Listing and counting unique values that match criteria

I want to create a list off another list but i'm having some issues getting things the way I want.   The "All Task" is the list i'm pulling data from.  I want to grab each unique Wave Number and th...
  • Patrick2788's avatar
    Oct 05, 2024

    Rodney2485 

    You have a few options here. I'd go with GROUPBY because it will allow you to apply multiple functions to the data. You may have to change the arrangement, but it handles this task well.

    =LET(
        row_field, Tasks[Wave '#],
        f, row_field = rpt_filter,
        values, HSTACK(Tasks[Task '#], Tasks[Task '#], Tasks[Task Status]),
        fn, HSTACK(COUNTA, ARRAYTOTEXT, ARRAYTOTEXT),
        agg, GROUPBY(row_field, values, fn, , 0, , f),
        DROP(agg, 1)
    )

Resources