Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

COUNTROW with a Containing a Letter in a Word

VAR Blank_ID = CALCULATE(
COUNTROWS(D_Eng_Win),
ISBLANK(D_Eng_Win[atl_workfrontrefid]) = TRUE()
)
 
What if I want to count rows like I did above but instead of looking for blank I want to count any word that contains the letter N?
Can I make it case sensative?
1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Tr the following formula:

MEASURE FindN =
    CALCULATE (
        COUNTROWS ( D_Eng_Win ),
        FILTER (
            D_Eng_Win,
            SEARCH ( "N", D_Eng_Win[atl_workfrontrefid],, 0 ) <> 0
                || SEARCH ( "n", D_Eng_Win[atl_workfrontrefid],, 0 ) <> 0
        )
    )

View solution in original post

1 REPLY 1
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Tr the following formula:

MEASURE FindN =
    CALCULATE (
        COUNTROWS ( D_Eng_Win ),
        FILTER (
            D_Eng_Win,
            SEARCH ( "N", D_Eng_Win[atl_workfrontrefid],, 0 ) <> 0
                || SEARCH ( "n", D_Eng_Win[atl_workfrontrefid],, 0 ) <> 0
        )
    )

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors