Forum Discussion

RickyTWK's avatar
RickyTWK
New Member
3 years ago
Solved

Count the data from filter rules

Hello, I work from construction company. I would like to count two type of data which are naming start with "RFI-A" and "RFI-BS" Can I do this in single column?  Thank you so much!  
  • Arul's avatar
    3 years ago

    RickyTWK ,

    Try this two measures,

    RFI-A = CALCULATE(
        COUNT('Table (2)'[RFI NO]),CONTAINSSTRING('Table (2)'[RFI NO],"RFI-A"))
    RFI-BS = CALCULATE(
        COUNT('Table (2)'[RFI NO]),CONTAINSSTRING('Table (2)'[RFI NO],"RFI-BS"))

    Thanks,

    Arul