March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi
I need to sum the difference between budget and actual but only where we can compare like mont 1 to 4
Month | Budget | Actual |
1 | 1000 | 500 |
2 | 2000 | 1000 |
3 | 2000 | 1500 |
4 | 1000 | 800 |
5 | 3000 | |
6 | 4000 | |
7 | 2000 | |
8 | 3000 | |
9 | 2000 | |
10 | 5000 | |
11 | 1000 | |
12 | 2000 | |
Total | 28000 | 3800 |
Solved! Go to Solution.
Hi,
You could try something like the measure below to only calculate if the actual field is not blank:
Hi,
You can use the CALCULATE function and filter the rows where the actual is blank, as shown below:
Difference =
CALCULATE(
SUMX('Table', [Budget] - [Actual]),
NOT ISBLANK('Table'[Actual])
)
Result:
Find more details in:
https://learn.microsoft.com/en-us/dax/calculate-function-dax
Hi,
You could try something like the measure below to only calculate if the actual field is not blank:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |