Raffaella Gozzini
10/10/2025, 3:03 PMsession_tracks, event_sessions, and others.
When building metrics, I need to apply a date filter (e.g. BETWEEN THIS(DAY, -6) AND THIS(DAY)) only to the starts at - session_tracks table, but because all these tables share the same Date dimension, any filter on {label/Date.Day} currently affects all of them.
Could you please confirm the correct MAQL syntax to scope a metric’s date filter specifically to the session_tracks dataset (for example, using {dataset/session_tracks} ), so that the filter applies only to session tracks data and not to event data?kapa.ai
10/10/2025, 3:03 PMMichal Hauzírek
10/10/2025, 3:08 PMWITH PARENT FILTER EXCEPT {label/date} this will cause that this one metric will ignore a date filter. But you can not disable it for a whole table universally.
Another option if you sometimes need to filter by the date everywhere and sometimes not would be to introduce another date dimension to your data model (connected to the same physical date column in your datasource) that would be only connected to the table you want to filter.Raffaella Gozzini
10/10/2025, 3:08 PMRaffaella Gozzini
10/10/2025, 3:09 PMRaffaella Gozzini
10/10/2025, 3:10 PMMichal Hauzírek
10/10/2025, 3:14 PM_When building metrics, I need to apply a date filter (e.g.But I assume you still want to apply the date filter to the other tables at some other cases, right? You would need to use) only to the starts at -BETWEEN THIS(DAY, -6) AND THIS(DAY)table, but because all these tables share the same Date dimension, any filter onsession_trackscurrently affects all of them._{label/Date.Day}
WITH PF EXCEPT {label/Date.Day} to all the other metrics but they you would have no way how to filter them by date…
I think changing the LDM is really the best option here.Raffaella Gozzini
10/10/2025, 3:16 PMMichal Hauzírek
10/10/2025, 3:19 PMRaffaella Gozzini
10/10/2025, 3:22 PMRaffaella Gozzini
10/10/2025, 3:23 PMMichal Hauzírek
10/10/2025, 3:30 PM{metric/count_of_active_users}) is looking into both session_tracks and event_sessions tables?
do you want the date filter to be applied on session_tracks only? or the count itself?
I am trying to understand how the date filter is now causing it to filter both tables.Raffaella Gozzini
10/10/2025, 3:31 PMMichal Hauzírek
10/10/2025, 4:22 PM{metric/count_of_active_users} is defined?
for COUNT, if the counted attribute appears in multiple tables in the data model because of the references, you can use the optional second parameter of the COUNT function to ensure in which table to apply the count.Mauricio Cabezas
10/16/2025, 7:02 PM