Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Caiz
Frequent Visitor

Variance % between Current and Previous Month's Open Tickets

Hi there,

 

I'm struggling to create a measure that easily show the difference between the previous month's open tickets (1) and the current month's open tickets (8).

 

 

Previous Month Open Tickets = 
CALCULATE (
    COUNT ('October Tickets'[Status]),
    FILTER (
        ALL ('October Tickets'),
        'October Tickets'[Status] = "Open"
    ),
    FILTER (
        ALL ('October Tickets'),
        'October Tickets'[Created time].[Month] = [Current Month]
    ))

 

 

With this code I would like to do this, but it isn't working for this measure:

 

'October Tickets'[Created time].[Month] = [Current Month]-1

 

 

I also have a measure for the previous month which doesn't work in this measure either:

 

One Month Ago = [Current Month]-1

 

 

I get the error saying "does not support values of type TEXT with values of type NUMBER"

 

Any help would be appreciated!

2 REPLIES 2
Anonymous
Not applicable

Hi @Caiz ,

 

Please show some sample data and expected result.

The error message means the [current month] is a text type value.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Caiz , Try to use time intelligence with date table

 

First have a measure

open  =

CALCULATE (
COUNT ('October Tickets'[Status]),
FILTER (
('October Tickets'),
'October Tickets'[Status] = "Open"
)

 

example

 

MTD = CALCULATE([open ],DATESMTD('Date'[Date]))
last MTD = CALCULATE([open ],DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month = CALCULATE([open ],previousmonth('Date'[Date]))
next month = CALCULATE([open ],nextmonth('Date'[Date]))

 

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.