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
Hello,
I am trying to calculate the difference between the current month and the previous month.
To calculate the number of rows in my table I use the following formula:
#Deskphone & Fax = CALCULATE(COUNTROWS(UOP),FILTER(UOP,UOP[Deskphone & Fax]="Deskphone & Fax"))
It gives me a lot of value
But I can't find how to calculate and display the difference between the current month and the previous month.
I am attaching two screenshots for information.
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
Difference =
VAR _current_month = [#Deskphone & Fax]
VAR _previous_month = CALCULATE([#Deskphone & Fax],PREVIOUSMONTH('Calendar'[Date]))
VAR _result = _current_month-_previous_month
RETURN
_result
and drag the 'calendar[Year],'calendar'[month] and the measure into the table visual.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hello,
Congratulation it is the best solution
Thank you for your help
BR,
Hello,
Congratulation it is the best solution
Thank you for your help
BR,
Hi @Anonymous ,
Please try:
Difference =
VAR _current_month = [#Deskphone & Fax]
VAR _previous_month = CALCULATE([#Deskphone & Fax],PREVIOUSMONTH('Calendar'[Date]))
VAR _result = _current_month-_previous_month
RETURN
_result
and drag the 'calendar[Year],'calendar'[month] and the measure into the table visual.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 9 | |
| 8 | |
| 8 |