Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Phara
Contributor III
Contributor III

How to order values ​​in a custom order. I would like to put the following values ​​in this order: 1. “Remuneration” 2. “Employer contribution”


I would like to put the following values ​​in this order:
1. “Remuneration”
2. “Cotisation de l'employeur”

Also, I'd like the "Totaux" lign which is the total lign to be at the end and not at the beginning

Phara_0-1713989234362.png

 

Thank you

 

Labels (1)
2 Replies
Chanty4u
MVP
MVP

Try this 

Mapping_Table:

MAPPING LOAD * INLINE [

    Value, SortOrder

    Remuneration, 1

    Cotisation de l'employeur, 2

    Totaux,3

];

 

Data:

LOAD 

    Field1,

    Field2,

    Field3

RESIDENT YourData;

 

FinalData:

LOAD

    *,

    ApplyMap('Mapping_Table', Field1) as SortOrder

RESIDENT Data

ORDER BY SortOrder;

Anil_Babu_Samineni

Please try like this

#1, You can play around sorting

Anil_Babu_Samineni_0-1714017382224.png

#2, That is default, in case if that force by business, there might be workaround with Island table. 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful