This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi Everyone -
I'm looking for help to use a slicer to dynamically calculate the difference between the two dates selected. This is for my "office market statistics project." Specifically, I'm looking to easily show the difference in absorption once a user chooses two dates.
Absorption is calculated by the difference in occupied square feet over a given period - it can be positive or negative. Occupied SF is calculated by subtracting the vacant SF from the "rentable building area (RBA)."
So for the situation below, the dates are 7/1/2014 - 4/1/2015, and in card visual below, it would display "3,486,142."
Occupied SF in 4/1/2015 = 136,426,764
Occupied SF in 7/1/2014 = 132,940,621
Absorption = 3,486,142
These numbers/stats will be updated each month and will all be in the same table. Any help would be greatly appreciated!
Thanks,
Paul
@Anonymous
@OwenAuger's solution is correct. Just use LASTDATE() calculation minus the FIRSTDATE() calculation.
Regards,
Hi Paul @Anonymous
I'm assuming you have a date table called 'Date' with date column 'Date'[Date], otherwise rename.
Also you've already defined an [Occ SF] measure by the looks of it.
Then a measure something like this should do the trick:
Absorption Between First and Last Date =
CALCULATE ( [Occ SF], FIRSTDATE ( 'Date'[Date] ) )
- CALCULATE ( [Occ SF], LASTDATE ( 'Date'[Date] ) )
Owen 🙂
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 25 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 47 | |
| 23 | |
| 18 | |
| 18 |