Thanks Jeff. I got it to work, but I get errors on the web, but it
I put it in another post... but here is part of it...
I pass two parameters, qty and sortdate. As the formulas show below,
when they select qty and ascending, it uses sum(fields). When I pick
This will sort by the value in the sortby parameter. Used for sortdate
field in data.
this....
Parameters!SortBy.Value="quantity",sum(Fields(Parameters!SortBy.Value).Value),0)
As I said above, this works perfect in visual studio when I preview it.
"Jeff A. Stucker" <jeff@mobilize.net> wrote in message
news:jeff@mobilize.net:
> Try this format:
>
> =Fields(Parameters!SortBy.Value).Value
>
> The bang notation (!) is simply shorthand for the above.
>
> If that doesn't work, you may be able to use IIF or a switch statement to
>
> choose between sorting options.
>
> --
> Cheers,
>
> '(' Jeff A. Stucker
> \
>
> Business Intelligence
>
www.criadvantage.com > --------------------------------------
> "John Geddes" <HYPERLINK "mailto:john_g@alamode.com"john_g@alamode.com>
> wrote in message
> news:OoVOq$h4EHA.1192@tk2msftngp13.phx.gbl...
>
> >I tried to pass the variable, but I am struggling with building the
> >expression to use on the sort.
> >
> > I have tried this, but it does not sort: "=Fields!" &
> > Parameters!SortBy.Value & ".value"
> >
> > Any ideas. I am not yet real fluent in this syntax.
> >
> >
> > "John Geddes" <HYPERLINK "mailto:john_g@alamode.com"john_g@alamode.com>
> > wrote in message
> > news:john_g@alamode.com:
>
> >> Great. I like both ideas. Maybe I can create a drop down list and
> >> pass
> >>
> >> a field to sort. Great Idea!
> >>
> >> I'll try it and let you know what I find.
> >>
> >>
> >> "Jeff A. Stucker" <HYPERLINK
> >> "mailto:jeff@mobilize.net"jeff@mobilize.net> wrote in message
> >> news:jeff@mobilize.net:
>
> >> > You can handle it manually in a couple of different ways:
> >> >
> >> > * Create 3 different versions of your report and jump between them
> >> > by
> >> > clicking on the header row. (That's what I've done.)
> >> > * See if you can sort based on a report parameter passed in. You
> >> > could
> >> > either pass your parameter to the data source or try to drive the
> >> > table
> >> > sorting based on it.
> >> >
> >> > --
> >> > Cheers,
> >> >
> >> > '(' Jeff A. Stucker
> >> > \
> >> >
> >> > Business Intelligence
> >> >
www.criadvantage.com > >> > --------------------------------------
> >> > "John Geddes" <HYPERLINK
> >> > "mailto:john_g@alamode.com"john_g@alamode.com> wrote in message
> >> > news:%2378frNf4EHA.3380@TK2MSFTNGP09.phx.gbl...
>
> >> > > Is there a way to sort columns dynamically in a table? I have a
> >> > > drill
> >> > >
> >> > > down table where I would like to give the users the ability to
> >> > > either
> >> > > click on a button or a click on a column name to dynamically sort
> >> > > by
> >> > > a
> >> > >
> >> > > specific column.
> >> > >
> >> > > I used to have three separate tables, each sorted a different way,
> >> > >
> >> > > but
> >> > > I
> >> > >
> >> > > want to do it all in one table.
> >> > >
> >> > > Thanks.
> >> > >
> >
>
> >
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (
http://www.grisoft.com).
> Version: 6.0.805 / Virus Database: 547 - Release Date: 12/3/2004
Outgoing mail is certified Virus Free.