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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 6309 views
  • 0 likes
  • 2 in conversation