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
How to calculate the percentage difference of (Count of Items) between this month and last month?
I want to calculate the no of items in this month and last month and calculate the percentage difference of the no of items.
Any help will be highly apprciated. Thanks in advance!
Solved! Go to Solution.
@Anonymous - You could do something like this, assuming you have a date table:
Percentage Difference =
var last_month = CALCULATE(
COUNT(yourtable[Item]),
PREVIOUSMONTH(Date[Date])
)
var this_month = COUNT(yourtable[Item])
return DIVIDE(this_month , last_month) - 1
@Anonymous - You could do something like this, assuming you have a date table:
Percentage Difference =
var last_month = CALCULATE(
COUNT(yourtable[Item]),
PREVIOUSMONTH(Date[Date])
)
var this_month = COUNT(yourtable[Item])
return DIVIDE(this_month , last_month) - 1
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 74 | |
| 66 | |
| 65 |