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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.