Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Solved! Go to Solution.
HI @hpayne93,
It seems like you missed the right brackets of the second CONTAINSSTRING function, you can try to use following measure formula if helps:
Logins =
SUMX (
FILTER (
'GA4 Sessions',
CONTAINSSTRING ( 'GA4 Sessions'[data.event_name], "login" )
|| CONTAINSSTRING ( 'GA4 Sessions'[data.pagetitle], "login" )
),
'GA4 Sessions'[data.event_count]
)
In addition, if you are check different fields with the same conditions at the same time, you can try or concatenate them and search the concatenate strings:
Logins =
SUMX (
FILTER (
'GA4 Sessions',
SEARCH ( "login", [data.event_name] & "," & [data.paetitle], 1 ) > 0
),
'GA4 Sessions'[data.event_count]
)
Regards,
Xiaoxin Sheng
HI @hpayne93,
It seems like you missed the right brackets of the second CONTAINSSTRING function, you can try to use following measure formula if helps:
Logins =
SUMX (
FILTER (
'GA4 Sessions',
CONTAINSSTRING ( 'GA4 Sessions'[data.event_name], "login" )
|| CONTAINSSTRING ( 'GA4 Sessions'[data.pagetitle], "login" )
),
'GA4 Sessions'[data.event_count]
)
In addition, if you are check different fields with the same conditions at the same time, you can try or concatenate them and search the concatenate strings:
Logins =
SUMX (
FILTER (
'GA4 Sessions',
SEARCH ( "login", [data.event_name] & "," & [data.paetitle], 1 ) > 0
),
'GA4 Sessions'[data.event_count]
)
Regards,
Xiaoxin Sheng
Great - worked perfectly. Thanks for your help!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.