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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PBI_user_mumbai
Regular Visitor

ALL() DAX not working as expected

I have a dax that calculates Seat Utilization as 

New Seat Requirement =

var A = SUMMARIZE(Fact_Workmodel,Fact_Workmodel[FCT Load Date-week start date],Fact_Workmodel[Associate ID],"Seat_Requirements",DISTINCT(Fact_Workmodel[Seat Requirement]))

RETURN SUMX(A,[Seat_Requirements])

I need this to be divided by a value that is the sum of this new Seat utilization ignoring any filter on [Practice].
Hence created the Total Seat Utilization as

Total Seat Requirement =

CALCULATE([New Seat Requirement],ALL(Dim_RegionMapping_vw[Practice]))
Upon placing these measures into a table view, I get the below result. Which is fine. 

But upon selecting a particular Practice from a slicer, The total Seat requirement is not expected to change, but it changes.
as below. Need support in fixing this.

PBI_user_mumbai_0-1738428812490.pngPBI_user_mumbai_1-1738428819546.png

 

8 REPLIES 8
Anonymous
Not applicable

Hi @PBI_user_mumbai 

 

You can try to modify the code as follows:

 

New Seat Requirement =
VAR A = 
    SUMMARIZE(
        Fact_Workmodel,
        Fact_Workmodel[FCT Load Date-week start date],
        Fact_Workmodel[Associate ID],
        "Seat_Requirements", DISTINCT(Fact_Workmodel[Seat Requirement])
    )
RETURN SUMX(A, [Seat_Requirements])

 

Total Seat Requirement =
CALCULATE(
    [New Seat Requirement],
    REMOVEFILTERS(Dim_RegionMapping_vw[Practice]),
    VALUES(Dim_RegionMapping_vw)
)

 

If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table. This will help resolve your issue.

 

Regards,

Nono Chen

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

divyed
Super User
Super User

Hello @PBI_user_mumbai ,

 

Try below dax pls :

New Seat Requirement =
VAR A = SUMMARIZE(
Fact_Workmodel,
Fact_Workmodel[FCT Load Date-week start date],
Fact_Workmodel[Associate ID],
"Seat_Requirements", DISTINCT(Fact_Workmodel[Seat Requirement])
)
RETURN SUMX(A, [Seat_Requirements])

 

 

Total Seat Requirement =
CALCULATE([New Seat Requirement], REMOVEFILTERS(Dim_RegionMapping_vw[Practice]))

 

I hope this helps.

 

Regards,

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/
danextian
Super User
Super User

Hi @PBI_user_mumbai 

 

The filter modifier is applied to Dim_RegionMapping_vw[Practice]. Are you using the same column in your table viz?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Yes, the filter is applied from same table(Region_mapping_vw)

nilendraFabric
Super User
Super User

Hello @PBI_user_mumbai 

 

give this a try

 

Total Seat Requirement =
CALCULATE(
[New Seat Requirement],
ALL(Dim_RegionMapping_vw)
)

 

Thanks

But I want this to not change based on [Practice] column selection only. It should change based on any other column selection from this table(Regionmapping_vw).

please try this 


Total Seat Requirement =
CALCULATE(
[New Seat Requirement],
REMOVEFILTERS(Dim_RegionMapping_vw[Practice])
)

Tried this. 
Again the result is showing as 1.60 on applying the practice filter

PBI_user_mumbai_0-1738474514302.png

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors