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

Multiple AllEXCEPT

Hi there,

 

I am trying to use 2 ALLEXCEPT functions in my measure.  It doesn't work - Does anyone have anything I could try?

 

 

# Of Job Order ID's (Specific Purpose) = 
if(
    max('Job Stage (with Total Vacancies)'[Value])="Total Vacancies",    
        CALCULATE(
            [# Of Job Order ID's],                                   
            ALLEXCEPT(                
                'FACT_JobCandidate-Current_LastWeek_Combined',
                'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage],
                'FACT_JobCandidate-Current_LastWeek_Combined'[Source Period]               
            ),
            ALLEXCEPT(
                'Cost Centre',
                'Cost Centre'[Cost Centre]
            )
        ),                
    CALCULATE(
        [# Of Job Order ID's],
        USERELATIONSHIP('Job Stage (with Total Vacancies)'[Value],'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage])
    )
)

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , if 'Cost Centre' is a dimension , Try like

 

 

# Of Job Order IDs (Specific Purpose) =
if(
max('Job Stage (with Total Vacancies)'[Value])="Total Vacancies",
CALCULATE(
[# Of Job Order IDs],
ALLEXCEPT(
'FACT_JobCandidate-Current_LastWeek_Combined',
'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage],
'FACT_JobCandidate-Current_LastWeek_Combined'[Source Period] ,
'Cost Centre'[Cost Centre]
)
),
CALCULATE(
[# Of Job Order IDs],
USERELATIONSHIP('Job Stage (with Total Vacancies)'[Value],'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage])
)
)

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Of course!  thank you.

amitchandak
Super User
Super User

@Anonymous , if 'Cost Centre' is a dimension , Try like

 

 

# Of Job Order IDs (Specific Purpose) =
if(
max('Job Stage (with Total Vacancies)'[Value])="Total Vacancies",
CALCULATE(
[# Of Job Order IDs],
ALLEXCEPT(
'FACT_JobCandidate-Current_LastWeek_Combined',
'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage],
'FACT_JobCandidate-Current_LastWeek_Combined'[Source Period] ,
'Cost Centre'[Cost Centre]
)
),
CALCULATE(
[# Of Job Order IDs],
USERELATIONSHIP('Job Stage (with Total Vacancies)'[Value],'FACT_JobCandidate-Current_LastWeek_Combined'[Job Stage])
)
)

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

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.