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

I have large datasets that I need to calculate fees on. The fee is constantly changing. Currently I have a query with a computed column that I edit with the new percentage in order to get the fee amount. Is there a way to create a prompt so I can just enter in the new percentage amount, and the computed column formula will change without going into the query?

For a simple example, all of the rows in my data will have a 1% fee today. Tomorrow my new data will have a 2% fee.

Or is there at least a way to get a prompt to come up that says "remember to change the % amount"?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

1. Define a prompt. Let's call it Fee

2. Use the prompt in the formula of your calculated column, i.e. amount * &Fee

View solution in original post

2 REPLIES 2
Patrick
Opal | Level 21

1. Define a prompt. Let's call it Fee

2. Use the prompt in the formula of your calculated column, i.e. amount * &Fee

winterfell
Calcite | Level 5

This worked perfectly, thank you so much for your help!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 2 replies
  • 2268 views
  • 1 like
  • 2 in conversation