I am working with BOXI and creating reports in Infoview. I need to put a self join in my universe prompting for a date, and I need to assign a default value to it.
It works if my default value is hard coded.
(fact_service.billing_change_date = @Prompt('Billing Change From Date','d',,mono,free,Not_Persistent,{'01/01/1900'},User:6,)
I need to change my default value to pick from an Object in the universe instead. Say Measures/Object1. This value has a max(date) as the SQL derivation and hence when it is used stand-alone, it will return only a single value.
I tried giving the following, but it does not work
(fact_service.billing_change_date = @Prompt('Billing Change From Date','d',,mono,free,Not_Persistent,{'Measures/Object1'},User:6,)
Thanks lu_huayong for that! But the problem now is it is displaying Measure\MaxYr as a text itself as the default value and not the value corresponding to it!
At this time you cannot provide a variable value as a default for a prompt. You can provide a variable value for a default for a condition, but not a prompt. There have been many topics on this very question over the past two weeks, including this fairly long one: