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
maciektrylowski
New Member

Dax Template AdventureWork

Does anyone know what Dax template is used to explain Allexcept function here:@ https://learn.microsoft.com/en-us/dax/allexcept-function-dax

 

i can see that some functions use probably the old template. 

thanks 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @maciektrylowski ,

 

As far as I know, ALLEXCEPT() function will return a table with all filters removed except for the filters on the specified columns.

Here I create a sample to help you understand the function.

vrzhoumsft_0-1683181546940.png

You can compare below measures which are created by ALL/ALLEXCEPT/ALLSELECTED. They will return similar results in my sample.

ALLEXCEPT = 
CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Region]))
ALL = 
CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Region] = MAX('Table'[Region])))
ALLSELECTED = CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table'[Category]))

Result is as below.

vrzhoumsft_1-1683181642273.png

The logic of above measures are all suming based on region group.

You can refer to below blog to learn more details.

For reference:

Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @maciektrylowski ,

 

As far as I know, ALLEXCEPT() function will return a table with all filters removed except for the filters on the specified columns.

Here I create a sample to help you understand the function.

vrzhoumsft_0-1683181546940.png

You can compare below measures which are created by ALL/ALLEXCEPT/ALLSELECTED. They will return similar results in my sample.

ALLEXCEPT = 
CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Region]))
ALL = 
CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Region] = MAX('Table'[Region])))
ALLSELECTED = CALCULATE(SUM('Table'[Value]),ALLSELECTED('Table'[Category]))

Result is as below.

vrzhoumsft_1-1683181642273.png

The logic of above measures are all suming based on region group.

You can refer to below blog to learn more details.

For reference:

Managing “all” functions in DAX: ALL, ALLSELECTED, ALLNOBLANKROW, ALLEXCEPT

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.