web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Runing a CountIf with ...
Power Apps
Answered

Runing a CountIf with a yes/no column on dataverse

(0) ShareShare
ReportReport
Posted on by 129

So, I'm trying to count the active tasks a person has on a data verse table, I'm using this expression

 

CountIf(tm_Tareas, Asignado.Nombre = ThisItem.Nombre && Completado = false)

 

Where Asignado = The assigned person to the task

Nombre = Their Name

Completado = Yes/No if the task is completed

 

The first part of the expression seems to work as intended, it returns the total of rows under that name, but the second part seems to not work, and I'm not sure what I'm doing wrong.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @FGRODRIGUEZ 

    Try

    CountRows(Filter(tm_Tareas, Asignado.Nombre = ThisItem.Nombre && Completado.Value= false)) 

  • FGRODRIGUEZ Profile Picture
    129 on at

    It does not seem to work, I get this error

     

    FGRODRIGUEZ_0-1678461466342.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @FGRODRIGUEZ

    It's more complicated than I thought. See https://www.spguides.com/power-apps-dataverse-yes-no-field/ 

  • Verified answer
    FGRODRIGUEZ Profile Picture
    129 on at

    In case someone else is having this issue in the future, I found the solution for my own dataset model

     

    CountIf(tm_Tareas, Asignado.Nombre = ThisItem.Nombre) - CountIf(tm_Tareas, Completado, Asignado.Nombre = ThisItem.Nombre)

     

    Where

    tm_tareas = dataverse table
    Asignado.Nombre = Assigned persons name

    Completado = The true state of the true/false switch

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard