Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
berryandcherry6
Creator II
Creator II

fetching rows based on startdate

Hi all,

i have campaignmetrics table, where it as campaign_start_date, here i have to get rows, where campaign_start_date contains date of previous month dates.


How could i get these rows. Please help me on this any help is appreciated.



Regards

3 Replies
vinieme12
Champion III
Champion III

have you tried this logic in where clause of your table load?

Month(campaign_start_date) <MONTH(TODAY())

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
maxgro
MVP
MVP

for previous month

you can check the month start of campaign_start_date is the same as monthstart of 1 month ago

.........

where

     MonthStart(AddMonths(today(), -1)) = MonthStart(campaign_start_date)

berryandcherry6
Creator II
Creator II
Author

Hi,

Thanks for reply

here campaign starts( campaign_start_date ) every thuesday and end in sunday of each week.

so my previous month will be in  27-06-2016 to 31-07-2016

my current month will be 01-08-2016 to 28-08-2016.


so i wont be able to use MonthStart(AddMonths(today(), -1)) = MonthStart(campaign_start_date).