---
title: Countifs
description: Count of values based on inputs and group. It will return a new table.
---

[Back to home](https://www.flow-wizard.com/knowledge)

- [ Analytical 
  
  ](https://www.flow-wizard.com/knowledge/analytical)
- [ Arithmetic 
  
  ](https://www.flow-wizard.com/knowledge/arithmetic)
- [ Data Prep 
  
  ](https://www.flow-wizard.com/knowledge/data-prep)
- [ Logical 
  
  ](https://www.flow-wizard.com/knowledge/logical)
- [ Charting Functions 
  
  ](https://www.flow-wizard.com/knowledge/charting-functions)
- [ Date Time 
  
  ](https://www.flow-wizard.com/knowledge/date-time)

# Countifs

## Count of values based on inputs and group. It will return a new table.

***Function:***

CountIfs(table = *string*, cols =* list*, count_col = *string, *new_table_name *= string*)

 

***Parameters:***

*Table:* Table name on which to perform function

*Columns:* Columns that you wish to group

*Count Column:* Value column you wish to return counts

*New Table Name:* Name for new table

 

***Examples:***

CountIfs(table = Budget, cols =* *[Business_Unit, Geo], count_col = Amount*, *new_table_name *= *CountbyBU&Geo)