Matador_24
Board Regular
- Joined
- Dec 1, 2011
- Messages
- 205
Hello,
I have a code extracting values from a pivot table.
My main filter is called INVESTMENT NUMBER in the pivot table.
The information in that field is a short code in the format: XXXX.XX
When I generate the pivot table, there can be dozens of numbers in that field, normally I choose the INVESTMENT NUMBER(S) I want to include. I have a couple of questions, once that I choose the investments I want:
1. What code can I use to store the INVESTMENT NUMBER I choose? For instance, if I choose the investment: 38, I want the variable InvNumber to store 38.
2. In case I choose more than one investment (the ones I choose will always start with the same number before the dot), I want to isolate the number before the dot (.) and store it in the variable. For instance, If I choose together: 1834.01, 1834.11, 1834.23, I need that the value stored in the variable to be 1834 only.
Thanks in advance for the help,
Luis
I have a code extracting values from a pivot table.
My main filter is called INVESTMENT NUMBER in the pivot table.
The information in that field is a short code in the format: XXXX.XX
When I generate the pivot table, there can be dozens of numbers in that field, normally I choose the INVESTMENT NUMBER(S) I want to include. I have a couple of questions, once that I choose the investments I want:
1. What code can I use to store the INVESTMENT NUMBER I choose? For instance, if I choose the investment: 38, I want the variable InvNumber to store 38.
2. In case I choose more than one investment (the ones I choose will always start with the same number before the dot), I want to isolate the number before the dot (.) and store it in the variable. For instance, If I choose together: 1834.01, 1834.11, 1834.23, I need that the value stored in the variable to be 1834 only.
Thanks in advance for the help,
Luis