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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.