Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
rodrigues_olive
Regular Visitor

Funções DAX: COUNT e COUNTA

Atualmente, há uma diferença muito "confuso" entre as funções DAX:COUNT e COUNT. Pois elas, são muito semelhantes quanto ao resultado. Não compreender qual é a utilidade de ambas as semelhanças e, qual das duas medidas é útil? Serei muito grato se alguém puder me ajudar nessa compreensão.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @rodrigues_olive ,

This is a recent enhancement to the COUNT function. Previously COUNT function doesn't count strings but just raise an error. We have since enhanced the function to count strings as well. You can refer to Remarks section in this article: COUNT Function (DAX).

 

The COUNT function counts rows that contain the following kinds of values:

  • Numbers

  • Dates

  • Strings

 

Regarding the COUNTA Function (DAX), it counts not just rows that contain numeric values, but also rows that contain nonblank values, including text, dates, and logical values.

 

The difference between those two functions are, COUNTA can count TRUE/FALSE column but COUNT still raises an error.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @rodrigues_olive ,

This is a recent enhancement to the COUNT function. Previously COUNT function doesn't count strings but just raise an error. We have since enhanced the function to count strings as well. You can refer to Remarks section in this article: COUNT Function (DAX).

 

The COUNT function counts rows that contain the following kinds of values:

  • Numbers

  • Dates

  • Strings

 

Regarding the COUNTA Function (DAX), it counts not just rows that contain numeric values, but also rows that contain nonblank values, including text, dates, and logical values.

 

The difference between those two functions are, COUNTA can count TRUE/FALSE column but COUNT still raises an error.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors