Hello,
I'm wondering if this can be achieved. I apologize in advance as I am a new user to OBIEE.
I'm automating a daily report that pulls previous day's data using field.dateopen = timestampadd(sql_tsi_day,-1,current_date).
I was hoping there would be a way I could, on Monday morning run a report that pulled field.dateopen is between timestampadd(sql_tsi_day,-3,current_date) and timestampadd(sql_tsi_day,-1,current_date). So when it ran Monday mornings it would pull data from Friday-Sunday.
Is there a way to build an if statement in the filter of an analysis to pull back this data? I was thinking of creating an if statement of "if dayofweek(current_date) = 2 then pull for the previous 3 days, else pull for yesterday.
I'm hoping to automate just one report as opposed to 2 separate reports that run these. Any help is appreciated.
Thanks!