Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I am trying to create a pivot table from the backend and store it in a csv file. And I have successfully created the pivot table but the order is missing when the data is pivoted. Request your help in sorting the order. Whether it be by using index or any other method. Attached a sample data, output and the used script below for reference.
The output should have the ageing field in the order of 0-30 Days, 31-60 Days, 61-90 Days, 91-180 Days, 181-365 Days, 1-3 Yrs, >3 Yrs
Thanks in advance.
It depends on the order that you join stuff. If you categories are fixed you can make a bit shorter code, but if you want to handle them dynamically, you could do something like:
It depends on the order that you join stuff. If you categories are fixed you can make a bit shorter code, but if you want to handle them dynamically, you could do something like:
Dear Morgankejerhag,
This solved my issue. Thank you very much.