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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I'm facing the following problem and I'm having trouble solving it. Given the following table
| Date | Benchmark | Desired Column |
| 03/02/2021 | 119725 | 1,0126 |
| 02/02/2021 | 118234 | 1,0074 |
| 01/02/2021 | 117365 | 1,0117 |
| 29/01/2021 | 116007 | 0,9900 |
| 28/01/2021 | 117172 | 0,9892 |
| 27/01/2021 | 118443 | 0,9894 |
| 26/01/2021 | 119708 | 0,9920 |
| 22/01/2021 | 120673 | 1,0014 |
| 21/01/2021 | 120502 | 1 |
I want to calculate the "Desired Column" that is reached by dividing the N day by N-1 day. So for example, for the date 03/02/2021 the math would be 119725/118234 = 1,0126. Is there any DAX formula that could work in this problem? I have tried some combinations of formulas but no success. Thanks in advance
Here is a measure expression you can use in a table visual with your date and benchmark columns.
NewMeasure =
VAR vThisDate =
MIN ( Benchmark[Date] )
VAR vPrevDate =
CALCULATE (
MAX ( Benchmark[Date] ),
ALL ( Benchmark[Date] ),
Benchmark[Date] < vThisDate
)
VAR vThisBenchmark =
SUM ( Benchmark[Benchmark] )
VAR vPrevBenchmark =
CALCULATE (
SUM ( Benchmark[Benchmark] ),
ALL ( Benchmark[Date] ),
Benchmark[Date] = vPrevDate
)
VAR vDenominator =
IF (
ISBLANK ( vPrevBenchmark ),
vThisBenchmark,
vPrevBenchmark
)
RETURN
DIVIDE (
vThisBenchmark,
vDenominator
)
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!