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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

ALL FUNCTION HELP

Hi All,

 

Im in the learning path of DAX...i have read about ALL() and below is my observation

* Acts like a filter modifier
 *Gives distinct value when used with column name 

*Gives combination of values when used with table name

*It ignore the external filter like visual/Slicer and impose the internal filter

 

However when i was doing practicals im confused how the ALL function is behaving

Numeratr = sum('Order Details'[Sales])
Denominatr = calculate(sum('Order Details'[Sales]),all('Orders'))
Numoverden = divide([Numeratr],[Denominatr],0)

 

My question is why is it ignoring filters on Lastname column when it is no where mentioned in a measure?

husnabanu_0-1612433879619.png

 

Below is the relationship model

 

husnabanu_2-1612433910979.png

 

Regards,

HB

 

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , all on order should remove all filters on order. So Filter from other table will also go away.

 

https://www.sqlbi.com/articles/using-allexcept-versus-all-and-values/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak only the Order table filter get removed .However why is it not slicing the data as per Last name which is coming from Employe table? 

@Anonymous , All means on the join ID too. Create a separate table for the Order ID and join with this table. and use all on that table and check.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak so you mean to say that since order table has employee id as foreign key even that table gets effected with ALL() function ??

Anonymous
Not applicable

@amitchandak  can you help me here please, does this mean if a table has foreign key even those tables are affected??

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.