Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
madhubabum
Creator
Creator

how to filter the data with where condition

Hi all

I have FY2001,FY2002,FY2003,FY2004,FY2005 data set,

how can i get FY 2003 to FY 2004.......with the help of Where condition

Thanks

Madhu

9 Replies
MK_QSL
MVP
MVP

If you want at script level

Load * From TableName Where WildMatch(Year,'*2003',*2004);

If you want at front end

Something like below

SUM({<Year = {'*2003','*2004'}>}Sales)

Not applicable

Hi Madhu,

You can use

Where wildmatch(Year,'FY2003','*2004');

Thanks,

Garry

jsingh71
Partner - Specialist
Partner - Specialist

Load *  From …..   WHERE Match(Year, ‘2003’, ‘2004’)

madhubabum
Creator
Creator
Author

Hi jsingh

Thanks to ur reply

I want to filter the data from "June-2003" to "may-2004"

Not applicable

Hi Madhu,

Load .... From ..... where Year>2003; this will give year from 2003 to......

jsingh71
Partner - Specialist
Partner - Specialist

what is your Date field? Is there a field is available which contains values like June-2003, July-2003 and so on?

jsingh71
Partner - Specialist
Partner - Specialist

Or share some sample data so its easy for us to give you correct solution.

krishna20
Specialist II
Specialist II

Hi Madhu,

if you need to display 2003 & 2004 data at front end. Try MRKachhiaIMP

Second suggestion.It will works.

vcanale
Partner - Creator II
Partner - Creator II

Hi,

Try this:

Load 'AllFieldsYouNeed',

Date(MonthStart('YourDateField'), 'MMM-YYYY') as [MMM-YYYY]

from TableName

where  [MMM-YYYY] > Jun-2003 and [MMM-YYYY] <May-2004;