Sort Excel report by email by date descending

Hi -
I have an Excel report attachment that I would like to order by date descending.

I’ve tried the Orderby start expression listed here - but it is not working. There is not an error, the report just does not send.

This is the default (current) start expression I’m using.

<<Start: Filter(MoodTracking, true)>><<[Mood]>>

This is the date field I’d like to sort by.

[DateOccurred]

Any ideas would be appreciated. Thank you!

0 8 331
8 REPLIES 8

Steve
Platinum 4
Platinum 4

Try:

<<Start: ORDERBY(Filter(MoodTracking, true), [DateOccurred], TRUE)>>

Thanks for the reply!

No errors when I save that, and the report still runs. But - the data values are turned in to numbers in the results.

I tried your format & also this with additional ():

<<Start: ORDERBY((Filter(MoodTracking, true)), [DateOccurred], TRUE)>><<[Mood]>>

3X_d_2_d2e8adeb43cbbb40684c68ed0c78dac07cfde08d.png

Please post a screenshot of your template.

Perhaps the cell format for column C needs to be changed? I would guess it’s set to Number when it be Date or Automatic.

Formatting the column as date does update the format to a date from a number. But the “recovery time” column (enum values) still returns as numbers.

The other issue is that the data shifts over to the left by one column. Values for the Image column are showing up in notes.

Values shifted to left:

Original format for recovery time & date occurred:
3X_5_5_55c8da93e50804c5d6938027e79f8be0541f5488.png

Perhaps change the format of those cells to match the base type of the Enum values?

That helped! Thank you!

Top Labels in this Space