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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors