How to format column aggregation totals?

Created on 25 September 2020, almost 4 years ago
Updated 24 August 2023, 10 months ago

Is there a way to do a number_format() on the column aggregation totals?

๐Ÿ’ฌ Support request
Status

Active

Version

2.0

Component

Documentation

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States codesmith San Francisco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany thomas.wardin

    thomas.wardin โ†’ made their first commit to this issueโ€™s fork.

  • Issue was unassigned.
  • Status changed to Active 10 months ago
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany thomas.wardin

    I am combining two webform submission fields into a text field like so:

    {% if webform_submission_value_1 is empty %}
      {{ webform_submission_value_4 }}
    {% else %}
      {{ webform_submission_value_1 }}
    {% endif %}
    

    In the webform, both fields are defined with an input mask like so:

    'alias': 'currency', 'prefix': '', 'groupSeparator': '.', 'radixPoint': ',', 'digits': 2
    

    I could not find a way to apply number_format to the views text field (which apparently isn't necessary), but the aggregation does not respect the format defined elsewhere;

    ID	Betrag	Comment
    50	1.200,00	Single Row
    51	1.800,00	Single Row
    	3000	Aggregate Row
    

    How to fix?

    Environment: Drupal 9.5.9, PHP 8.1.18, Views Aggregator Plus 2.0.2

Production build 0.69.0 2024