<commit_before>---
title: Calculating Percentages in a Query
description: ---
menu:
  influxdb_1_5:
    weight: 50<commit_msg>changed percentage article title to sentence case, added description<commit_after>---
title: Calculating percentages in a query
description: Percentages can be calculated using basic math operators available in InfluxQL. This guide walks through use-cases and examples of calculating percentages from two values in a single query.
menu:
  influxdb_1_5:
    weight: 50
{'fraction_non_alphanumeric': 0.058823529411764705, 'fraction_numerical': 0.016227180527383367, 'mean_word_length': 4.880952380952381, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1559714', 'n_tokens_mistral': 137, 'n_tokens_neox': 124, 'n_words': 59}