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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I would like to add a column to show difference per month in cost and percentage for just 2023?
I have a column called Date_Month and amount. Thanks
Solved! Go to Solution.
Amount diff MoM =
VAR __PREV_MONTH =
CALCULATE(
SELECTEDVALUE('Table'[amount]),
DATEADD('Table'[Date_Month], -1, MONTH)
)
RETURN
SELECTEDVALUE('Table'[amount]) - __PREV_MONTH
Amount MoM% =
VAR __PREV_MONTH =
CALCULATE(
SELECTEDVALUE('Table'[amount]),
DATEADD('Table'[Date_Month], -1, MONTH)
)
RETURN
DIVIDE(SELECTEDVALUE('Table'[amount]) - __PREV_MONTH, __PREV_MONTH)
make sure the date_month is date format, replace table with you table name
Amount diff MoM =
VAR __PREV_MONTH =
CALCULATE(
SELECTEDVALUE('Table'[amount]),
DATEADD('Table'[Date_Month], -1, MONTH)
)
RETURN
SELECTEDVALUE('Table'[amount]) - __PREV_MONTH
Amount MoM% =
VAR __PREV_MONTH =
CALCULATE(
SELECTEDVALUE('Table'[amount]),
DATEADD('Table'[Date_Month], -1, MONTH)
)
RETURN
DIVIDE(SELECTEDVALUE('Table'[amount]) - __PREV_MONTH, __PREV_MONTH)
make sure the date_month is date format, replace table with you table name
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |