BookmarkSubscribeRSS Feed
ncsthbell
Quartz | Level 8

Not sure if this is the right 'community' to post this.  I did not find one for "SAS Information Map Studio".  If this is incorrect, please let me know where I should post this question.

I have created a map and I need to create a filter on one of the date data items.   In the map, I want the filter to be 'Begin_dt <= current_date' and End_dt >= current_date'.  I tried to build a filter by selecting 'New filter', I selected the data item "Begin_Dt", for the condition I selected "Is before or equal to", for Values I selected 'use and expression', then in the expression I used the date funtion so my expression looks like this <<Demographics.Begin_Dt>> <= DATE()   and << Demographics.End_date >= DATE()>>.  I get an error that says "is invalid and cannot be used in a query".

Can you tell me what I am doing wrong?  Or, is this something I can not do in Information Map?

Thanks!

1 REPLY 1
TriciaA
Calcite | Level 5

I'm not sure if the logic you are using is going to work in the way you are expecting.

Anyway - if the experession is a cut and paste - then here's what's wrong:

The operator and DATE() are in the wrong place.

<<Demographics.Begin_Dt>> <= DATE()   and << Demographics.End_date >= DATE()>>

The ">>" needs to be behind the data item.

<<Demographics.Begin_Dt>> <= DATE()   and << Demographics.End_date>> >= DATE()

Tricia

Subscribed to my BI Notes for SAS Users Blog for tips and tricks using the SAS BI toolset

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 755 views
  • 3 likes
  • 2 in conversation