Forum Discussion

ErickRuiz7's avatar
ErickRuiz7
Cloud Apps
05-28-2024
Solved

SUM based on Text Criteria

I have a STRING column called Question, this question column provides two possible answeres, either 'Yes; or 'No' How do I create formulas to sum the amount of times a Yes shows up, the amount of ti...
  • HamzaJ's avatar
    05-29-2024

    Hey ErickRuiz7 

    You could use a measure filter to achieve this. Let's assume we have 2 columns; question and answer. A formula would look like this:

    (Count([Question]), [Answer])

    Now you can click on answer and it will show the option Filter. Click on that and you can set the desired filter. This will make the aggregation (in this case a count) count the number of questions for which the answer is , for example, Yes. 

    This can be used in more advanced scenario's. In more traditional scenario's you could add Answer as a widget filter. Or add it to the row/column (pivot table) or for example the break-by in a chart. This will automatically list all found values and counts by it

    Hamza