Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I deleted my previous topic - SQL quires where correct.
My real problem is with qlikview query :
LOAD
FA_Location_Subcode,
SUM(Bought_Quantity) AS Bought_Last_Month
RESIDENT DATASOURCE_SALES
WHERE
MONTHNAME(Bought_Date) = MONTHNAME(Today())-1
GROUP BY
FA_Location_Subcode;
As a result I got ZERO data. I think because of this restriction:
MONTHNAME(Bought_Date) = MONTHNAME(Today())-1
I need all data from December 2017 ...
How can I correct my formulas?
I hope for your help!
Hi,
Same Data You want to take it for the Last Month?
If Yes then can you try something like this:
=MonthName(MonthStart(Today())-1)
May be this?
MONTHNAME(Bought_Date) = MONTHNAME(Today() ,-1)
sintax error
I have made some tests:
The code is:
And the result is:
So, How can I correctly get -1 Month in order to compare second and fourth columns?
search in help menu
What are you trying to achieve??
Regards,
I need to take all data with date of previous month
The syntax error must be somewhere else. Could you post the screenshot of the error and the script snippet?
Hi,
Same Data You want to take it for the Last Month?
If Yes then can you try something like this:
=MonthName(MonthStart(Today())-1)
OMG .. so simple, I feel stupid! Thank you very much!