Variable as parameter - Descending order?
Posted: Fri Mar 20, 2020 2:36 pm
I have a working report with two variables as parameters: Status and YearMonth (with YearMonth dependent on Status). I would like to have the most recent YearMonth for the selected Status as the default selected value. If I could sort the variable values (which are provided by a data source column) in descending order, then I could use the 'First' option. Or, I might be able to use an expression to determine the final (or highest) value for a given status, and set that as the default selected value. But I haven't been able to figure out how to apply either of those to a variable. Any suggestions? Thank you.
(I've ensured that the data source itself is providing the values in the desired order, but the variable list seems to always go to ascending sort. Or the "sort descending" and "expression" options, I'd prefer the descending sort.)
(I've ensured that the data source itself is providing the values in the desired order, but the variable list seems to always go to ascending sort. Or the "sort descending" and "expression" options, I'd prefer the descending sort.)