Forum Discussion
Create an activity chase table from an activity fact table and date table
- 3 years ago
In the CROSS JOIN, do not filter the Dim Date table. That gets you a Chase date for every day of the week for every Chase Activity. Wrap your final FILTER in another FILTER where the WEEKDAY of the Chase Activity = the WEEKDAY of the Dim Date column:
FILTER (
FILTER ( CROSS JOIN (
FILTER ( Activity..."In Progress"),
'Dim Date'
)
, 'Dim Date' [My Date] >= TODAY()
)
WEEKDAY ( 'Activity'[Date] ) = WEEKDAY ('Dim Date'[The Date] )
Thanks fo you help and propmt response, CROSS JOIN worked perfectly and produced almost the table that I'm after:
In the CROSS JOIN, do not filter the Dim Date table. That gets you a Chase date for every day of the week for every Chase Activity. Wrap your final FILTER in another FILTER where the WEEKDAY of the Chase Activity = the WEEKDAY of the Dim Date column:
FILTER (
FILTER ( CROSS JOIN (
FILTER ( Activity..."In Progress"),
'Dim Date'
)
, 'Dim Date' [My Date] >= TODAY()
)
WEEKDAY ( 'Activity'[Date] ) = WEEKDAY ('Dim Date'[The Date] )
- jimbob22853 years ago
Advocate IV
Thanks so much for all your help, that worked an absolute treat and has taght me so much
Cheers
Jim