Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Thank you for any help. Trying to get a calculated column 'Monthly_Change' that, for each row, subtracts the RT value on the last ActionDate in the previous month from the current RT value. Tried this, didn't work:
Solved! Go to Solution.
hi @lsealy ,
not sure if i fully get you, supposing you have a data table like:
| date | RT |
| 9/1/2023 | 4 |
| 9/9/2023 | 4 |
| 9/17/2023 | 1 |
| 9/25/2023 | 2 |
| 10/3/2023 | 3 |
| 10/11/2023 | 2 |
| 10/19/2023 | 2 |
| 10/27/2023 | 6 |
| 11/4/2023 | 4 |
try to add a calculated column like:
column =
VAR _prt=
MAXX(
TOPN(
1,
FILTER(data, data[date]<=EOMONTH(EARLIER(data[date]), -1)),
data[date]
),
data[RT]
)
RETURN
IF(
NOT ISBLANK(_prt),
[RT] - _prt
)
it worked like:
hi @lsealy ,
not sure if i fully get you, supposing you have a data table like:
| date | RT |
| 9/1/2023 | 4 |
| 9/9/2023 | 4 |
| 9/17/2023 | 1 |
| 9/25/2023 | 2 |
| 10/3/2023 | 3 |
| 10/11/2023 | 2 |
| 10/19/2023 | 2 |
| 10/27/2023 | 6 |
| 11/4/2023 | 4 |
try to add a calculated column like:
column =
VAR _prt=
MAXX(
TOPN(
1,
FILTER(data, data[date]<=EOMONTH(EARLIER(data[date]), -1)),
data[date]
),
data[RT]
)
RETURN
IF(
NOT ISBLANK(_prt),
[RT] - _prt
)
it worked like:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |