OrderyBy query

Hey guys, I seem to be having issues with the orderby formula,

I have this start expression that returns the sessions I need, but
<<Start:SELECT(Case Session[SID], ([Ref]=[_THISROW].[Case Ref])) >>

When adding the orderby expression Iโ€™m getting errors:
<<Start:SELECT(Orderby(Case Session[SID], ([Ref]=[_THISROW].[Case Ref])), [Order Date], TRUE) >>

Any help would be extremely grateful.
Regards
Ben

0 4 126
4 REPLIES 4

Steve
Platinum 4
Platinum 4

Hi there! First, what error are you getting?

And my suggestion is to put the order by on the outside, because it seems to (typically) operate on the results of a SELECT query as shown here:
ORDERBY(SELECT(โ€ฆ))

This is a little different than traditional SQL which has a more declarative syntax with ORDER BY clauses appearing at the end, but should have the same effect.

Can you give that a try and let us know?

Thank you!

Mike

Ahhh Mike,

Thanks so much for your reply, I just noticed that I was using [Order Date] instead of [Date]

Sorry to have wasted your time.

Regards
Ben

Not a waste of time! Thanks for following up and glad itโ€™s working for you now. Yes, writing queries like this can be a bit of trial and error until it gets dialed in. Reach out any time.

Top Labels in this Space