Forum Discussion

Apple08's avatar
Apple08
Helper IV
3 years ago

To count for specific year items

Hi All

 

I like to count how many RAGs for a specific year, and this specifc year may varied as per user's request.  Please see the example below.  I would like to count the number of Red, Amber and Green based on the Year, e.g. 2023A, but user may also want to see 2023B or 2023C.  I wonder what is the best way to get the count?  Many thanks.

 

ProjectYearRAG
A2022A, 2022C, 2023ARed
B2022CGreen
C2023A, 2023BAmber
D2022B, 2023B, 2023CAmber
E2023A, 2023BRed
F2023B,2023CGreen
G2023A, 2023BGreen
H2023A, 2023BRed
I2023B,2023CAmber
J2023CRed

1 Reply

  • ERD's avatar
    ERD
    Community Champion

    Hi Apple08 , can you change your table in Power Query? Basically, you need to have one year per row..