Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Issue when using Orderby with the option FALSE inside a Start End expression

I'm using the "OrderBy" function to sort the [Fecha] column, highlighted in yellow.  "Fecha" means Date.

maretec_1-1751665760443.png

The date format is day/month/year.

If set to TRUE, it works correctly (descending order).

maretec_5-1751667540640.png

 

But if set to FALSE, all items are in the correct order except the last one.

maretec_4-1751667415907.png

I changed the order from FALSE to TRUE and vice versa several times, but the results were the same.

Any ideas to fix this?

Solved Solved
0 10 247
1 ACCEPTED SOLUTION

Please try below.

1) In the "Cargos" table, please add a column called say [Insurer_Name] with an expression something like [Reclamo ID].[Insurer_Table_Key]

2) Now the template expressions can be something like below

In the template below,  [Aseguradora Name] is assumed to be the name column of the insurer.

Aseguradora : <<[Aseguradora ID].[Aseguradora Name]>>

Fecha Placa Auto Reclamo other columns Debito

<<Start: ORDERBY(SELECT(Cargos[Cargos Table Key],[Insurer_Name]=[_THISROW].[Aseguradora ID]), [Fecha], FALSE)>>

<<[Fecha]>>

<<[Placa]>> <<[Auto]>> <<[Reclamo ID].[Reclamo Number]>> .........

<<[Monto]>>

<<END>>

 

Edit: Made some changes to make the approach simpler.

View solution in original post

10 REPLIES 10
Top Labels in this Space