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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RZAU
Frequent Visitor

ALL () Function Confusion

Hello Power BI Experts

 

I'd like to ask a simple ALL () function.  I am lost by ALL ().  NumOfAllColors= COUNTROWS(ALL('Product'[Color])). It returns 16 on all rows. Literally, it does what the formular says.  After I re-read the formular, I just removed Product[Color] column, NOT Product[Category], should Product[Category] filter still works?  I mean Product[Category] filter should apply to the final result?

 

CategoryNumOfColorsNumOfAllColors 
Audio1016 
Cell Phones1416 
Computers816 
TV and Video216 
....................... 
    
    
    
1 REPLY 1
speedramps
Super User
Super User

All returns all rows in a table, ignoring any filters that have been applied.

When you draw a visural table, matric or graph then x / y / z filters are applied.

In your example the Category filter.

 

Since you have not explained where Category or NumOf Colouirs comes from.
I can't guesse and help you any more.

 

We want to help you but your description is too vaugue.  Please write it again clearly.

 

Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That is crazy. 😀


Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.

 

Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.

 

Remember not to share private data ... we don't want you to get into trouble.  😧

 

Take care to use the same table and field names in the input, output and description so we can understand your problem and help you.

 

You will get a quick response if you put time and effort into writing clear problem descriptions.

 

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors