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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All,
I would like to get the value that preceedes based on the earlier date. The value needs to also match the group number.
My table looks like that:
+------------+-------+-------+----------------+ | date | group | value | previous value | +------------+-------+-------+----------------+ | 2019-02-02 | 2 | 50 | 45 | | 2019-02-02 | 1 | 60 | 80 | | 2019-01-18 | 2 | 45 | | | 2019-01-18 | 1 | 80 | |
After looking different ressources online that ressemble my question I came up with the following query which gives me a blank column.:
RateChange =
CALCULATE(
VALUES(table[Rate]),
FILTER(
ALL(table),
table[date] = EARLIER(table[date])-1 && table[group] = EARLIER(table[group])
)
) I need help in getting the query to work as calculated column and measure.
Thank you !
Solved! Go to Solution.
Hello,
You can try the following modification marked with blue:
RateChange =
CALCULATE(
VALUES(table[Rate]),
FILTER(
ALL(table),
table[date] < EARLIER(table[date]) && table[group] = EARLIER(table[group])
)
)Regards,
ElenaN
You may refer to the post below.
You may refer to the post below.
Hello,
You can try the following modification marked with blue:
RateChange =
CALCULATE(
VALUES(table[Rate]),
FILTER(
ALL(table),
table[date] < EARLIER(table[date]) && table[group] = EARLIER(table[group])
)
)Regards,
ElenaN
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |