Quantcast
Viewing all articles
Browse latest Browse all 3189

Re: Custom Prompt In Query

Hi Jeff,

 

  1. I assume this variable is just to capture a Fiscal Period number entered by User, isnt it?
  2. The selection doesn't change the data pulled in the report, isnt it?


If yes to the both questions? Then, instead of writing as 1 (in 1=@Prompt), lets write @Prompt() = @Prompt(). That's because when you have 1=@prompt() and you select 2, what happens is 1=2 condition fails (as 1 is not equal to 2) and you'll get NO Data in the report.

So, @Prompt() = @Prompt() will be correct all the time and data retrieved won't be affected by what you select.

 

So, use this as definition in the filter from my previosu post.

 

To capture the value in the report, you'll have to create a variable as

v_EnteredFiscalPeriod with the below formula

= Userresponse("Enter Fiscal Year Period (e.g. 1 for July):")

 

Make sense?


Thanks,

Mahboob Mohammed


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>