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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
titanic123
Helper I
Helper I

ALL function within Count in PowerBi

 Hello everyone,  'ALL' function is not working when using the Count as below:

 

=CALCULATE(COUNT('WorkTickets'[Ticket Number]),ALL('WorkTickets'[ Status]))

 

I am using page filter 'Satus' as well. I tried different ways, Please advise.

 

countx(FILTER('WorkTickets',ALL(WorkTickets[Status])),WorkTickets[Ticket Number])

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @titanic123 ;

I make a simple data then test it , it works fine . so is your data affected by other tables or data?

1.original table.

vyalanwumsft_0-1636360957360.png

2.count it .

count = CALCULATE(COUNT('Table'[Ticket Number]),ALL('Table'[Status]))

The final output is shown below:

vyalanwumsft_1-1636361015016.png

The '3' is a correct result, if not work, then is show '2'.

so can you share me a simple data which can help understand the specific reasons and further discussion?

Best Regards,
Community Support Team_ Yalan Wu
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

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @titanic123 

 

Download sample PBIX with the following data and code

 

You didn't initially say what your page filter for Status was doing, or how many status types you have.  Always best to supply some sample data so we can better understand.

 

With this measure

Count All Tickets = CALCULATE(COUNTROWS('Work Tickets'),ALL('Work Tickets'[Status]))

 

and this sample data, I don't have an issue

countr1.png

 

Please supply your data and/or PBIX file so I can check further.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


v-yalanwu-msft
Community Support
Community Support

Hi, @titanic123 ;

I make a simple data then test it , it works fine . so is your data affected by other tables or data?

1.original table.

vyalanwumsft_0-1636360957360.png

2.count it .

count = CALCULATE(COUNT('Table'[Ticket Number]),ALL('Table'[Status]))

The final output is shown below:

vyalanwumsft_1-1636361015016.png

The '3' is a correct result, if not work, then is show '2'.

so can you share me a simple data which can help understand the specific reasons and further discussion?

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

titanic123
Helper I
Helper I

Hi Phil, As I explained I have page filter for Status ='Active' and I am trying to get all status tickets count in the measure.

 

 

PhilipTreacy
Super User
Super User

Hi @titanic123 

 

How is it not working?  Can you please be specific about what you are trying to do and what you expect as a result.

 

Please supply sample data too.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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