Hi,
I'm trying to debug an issue with PivotView, which consists of the following: when we load data from a CSV and the data in the column or row headers is numeric, the calculated fields do not work and we always get the "Invalid Formula" error (please see screenshot below).
The formula that is generated automatically when we drag and drop fields to the formula also doesn't seem to be correct.
I've read your documentation and also looked up other threads here and issues on GitHub that report the same problem but, so far, I didn't find anything useful.
I think the issue might be connected with a conversion of the header string into a number, which inevitably causes the invalid formula issue. I've tried to fix the formula by removing the quotation marks (for example: Sum(1969)) but then the calculated field column doesn't include any values.
I've also tried the experiment with a field that has a string header and, in that case, the calculated fields feature seems to work properly.
This is not an isolated incident related to a specific CSV file, since my team and I tried different CSV files as datasource and we had the same issue with every single file that had numeric headers instead of string headers.
I attach the CSV file and the little code example that I'm using to debug the issue.
Is there a way to solve this issue?
Thanks in advance.
Attachment:
sample_e06943a8.zip