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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard