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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
RandomJoe
Frequent Visitor

Using ALLCROSSFILTERED with CALCULATE

According to the documentation (https://docs.microsoft.com/en-us/dax/allcrossfiltered-function-dax) I should be able to use ALLCROSSFILTERED within a CALCULATE, but I'm getting an error that it failed to resolve name 'ALLCROSSFILTERED' in the following measure:

 

Count All Employees = CALCULATE(SUM('Employee Dim'[Custodian Count]), ALLCROSSFILTERED('Employee Dim'))

 

Can someone help me here?

 

In the end, what I am trying to do is select the name of the person from the Employee dimension for the USERNAME() that is logged in, so I need to remove all the filters that may have been applied. The ALL() function only does it for filters applied directly to that table and not for any related tables.

2 REPLIES 2
RandomJoe
Frequent Visitor

For others who may have this question, I have a partial solution:

 

Logged In User = CALCULATE(SELECTEDVALUE('Employee Dim'[Custodian Name]),FILTER(ALL('Employee Dim'),[Custodian Email]=USERPRINCIPALNAME()),ALL('Connected Client Fact'))
 
By using a second filter on the central Fact table I was able to remove any crossfiltering that was occuring on the Employee dimension.
 
You'll note that this solution is predecated on the point that there is a central table. This would not have worked if I needed data from the Fact table. If that were the case I would need to remove all the filters individually from each connected dimension.
 
I hope an expert can tell me why ALLCROSSFILTERED is not working.

I'm experiencing the same issue. One assumption of mine is that it has to do with the version of the SSAS which has not been updated with the latest cumulative updates and thus not supports the newest DAX functions listed here: https://docs.microsoft.com/en-us/dax/new-dax-functions

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.