BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sdang
Quartz | Level 8


How do I add prompt to filter in Query setting.  So when users open the report it prompts them to input two date values.  I created the prompt in Prompt Manager. Below is the image of where I want to use my prompt.

Thanks

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
tlk
Quartz | Level 8 tlk
Quartz | Level 8

You create a new filter

2015-03-17 16_16_19-Query Builder for SASApp_STP Samples.jpg

Then you select your column and after in the value field

2015-03-17 16_16_49-Query Builder for SASApp_STP Samples.jpg

you select your prompt

View solution in original post

5 REPLIES 5
tlk
Quartz | Level 8 tlk
Quartz | Level 8

In Options menu you will have the prompt option, there you can had your prompt, then after you will be able to filter using the macro variable defined by the prompt (&yourprompt)

sdang
Quartz | Level 8

How do I apply macro?

tlk
Quartz | Level 8 tlk
Quartz | Level 8

You create a new filter

2015-03-17 16_16_19-Query Builder for SASApp_STP Samples.jpg

Then you select your column and after in the value field

2015-03-17 16_16_49-Query Builder for SASApp_STP Samples.jpg

you select your prompt

sdang
Quartz | Level 8

Thank you.  I applied your setting and it worked but no data were shown. Any idea? Below is an image of my Promp_1 setting and the structure of the date/time variable.

Capture.PNG

Capture1.PNG

Thanks

sdang
Quartz | Level 8

I found the solution.  In step 3 of 4 of Build a basic filter, I selected "In a Range".  Thank you for all your help.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 5664 views
  • 0 likes
  • 2 in conversation