March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |