This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have the following DAX formula that isn't working.
As you can see, I'm trying to sum a value in 'Headcount' by specifying corresponding values in neighbouring column 'BU'.
However, I also want to keep certain page-level filters.
Can anyone fix my formula? Thanks in advance
Total Headcount - Fixed =
CALCULATE(
SUM(Occupancy[Headcount]),
Occupancy[BU] IN {"Marketing", "Sales", "Head Office", "Support", "Ops", "IT", "Senior Team"}
) + 0
ALL('Real Estate'[Building]),
ALL('Real Estate'[City]),
ALL('Real Estate'[Country]),
ALL('Real Estate'[Region]))
Solved! Go to Solution.
hi @shaunguyver,
i am not sure, but you could try ALLEXCEPT within the CALCULATE
Total Headcount - Fixed =
CALCULATE(
SUM(Occupancy[Headcount])
, ALLEXCEPT('Real Estate', 'Real Estate'[Building],'Real Estate'[City], 'Real Estate'[Country],'Real Estate'[Region])
, Occupancy[BU] IN {"Marketing", "Sales", "Head Office", "Support", "Ops", "IT", "Senior Team"}
) + 0
regards
florian
hi @shaunguyver,
i am not sure, but you could try ALLEXCEPT within the CALCULATE
Total Headcount - Fixed =
CALCULATE(
SUM(Occupancy[Headcount])
, ALLEXCEPT('Real Estate', 'Real Estate'[Building],'Real Estate'[City], 'Real Estate'[Country],'Real Estate'[Region])
, Occupancy[BU] IN {"Marketing", "Sales", "Head Office", "Support", "Ops", "IT", "Senior Team"}
) + 0
regards
florian
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 31 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 74 | |
| 61 | |
| 31 | |
| 31 | |
| 23 |