Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi There,
I am trying to create a CALCULATE DAX formula where I am trying to calculate the whole column (without filters) - calculation of the same column with SELECTEDVALUE
So the outcome would be: Whole column - Column filtered by Slicer = XX Days
The formula us currently as follows
CALCULATE(SUM('Data Set - Leave Liability'[Total Days]), All('Data Set - Leave Liability'[Branch]),'Data Set - Leave Liability'[Branch]="Policy & Trade")
The ALL isn't really required here since you then override the filter context anyway.
CALCULATE(SUM('Data Set - Leave Liability'[Total Days]), 'Data Set - Leave Liability'[Directorate] = SELECTEDVALUE('Directorate List'[Directorate]))
This requires more information - like what the data model looks like, and what the measure definition is for [Total Days].
Read about EVALUATEANDLOG - it is a great tool to validate your formula results.
I am wanting to find the difference between the [Branch] against the [Directorate].
The dataset is around leave days etc so needing a comparison between the two sets
I have tried taking out the ALL though this is still getting the same result
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |