Hello, everyone,
I have a pivot table displaying the total sales of three brands in two columns (one as currency, the other as % of total). The currency column's numbers are formatted as currency, with thousands separator, two decimal places and "лв." after each number. For each of the three brands' row, I have created a dynamic 'label' which I have copied onto a pie chart so I have custom data values. One label reads as such:
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; box-sizing: inherit; white-space: inherit;">=A4&CHAR(10)&TEXT(GETPIVOTDATA("Sales";$A$3;"Brand";A4);"#'### лв."&CHAR(10)&TEXT(GETPIVOTDATA("Sales %";$A$3;"Brand";A4);"0.00%"))</code>The issue I am having is that the text function seems to ignore the "#'###.## лв." formatting completely. Instead of displaying "1'234'567.89 лв.", the function displays "123'456'789 лв.", misplacing the thousands separator, ignoring the decimal comma, and making the number greater that it is. The percentages are formatted correctly. Any help with this issue would be very appreciated!
I have a pivot table displaying the total sales of three brands in two columns (one as currency, the other as % of total). The currency column's numbers are formatted as currency, with thousands separator, two decimal places and "лв." after each number. For each of the three brands' row, I have created a dynamic 'label' which I have copied onto a pie chart so I have custom data values. One label reads as such:
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; box-sizing: inherit; white-space: inherit;">=A4&CHAR(10)&TEXT(GETPIVOTDATA("Sales";$A$3;"Brand";A4);"#'### лв."&CHAR(10)&TEXT(GETPIVOTDATA("Sales %";$A$3;"Brand";A4);"0.00%"))</code>The issue I am having is that the text function seems to ignore the "#'###.## лв." formatting completely. Instead of displaying "1'234'567.89 лв.", the function displays "123'456'789 лв.", misplacing the thousands separator, ignoring the decimal comma, and making the number greater that it is. The percentages are formatted correctly. Any help with this issue would be very appreciated!