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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
msbutton27
Regular Visitor

How to count tickets opened and closed on the same graph

Currently I can show my opened tickets or closed tickets for any month individually, but I would like to be able to combine the two charts together, but having issues. Pre-warming, I am extremely new to PowerBI, so apologies in adavance.

 

Here are my two charts:

msbutton27_0-1691520069839.png

 

Actual Data is simliar to below:

msbutton27_1-1691520153979.png

 

Current Visualization details:

msbutton27_2-1691520185474.png

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@msbutton27 it is pretty straightforward, add a date dimension to your model, see these videos on how to do it, and change the type "create date" and "close date" columns to type date in PQ.

 

Set the relationship of these two dates with the date dimension on the date column, one relationship will be active, other will be inactive. Assume create date relationship is active, add the following two measures, and in visuals, use year and month from the date dimension and the measures on the values:

 

Learn basics of Time Intelligence DAX functions - Part 1 - YouTube

 

Learn why marking a Date dimension as date table is critical to use DAX Time Intelligence functions ...

 

Create Count = COUNTROWS ( YourTable )

Closed Count = CALCULATE ( [Create Count], USERELATIONSHIP ( YourTable[Closed Date], DateTable[Date] ) )

 

👉 Learn Power BI and Fabric - subscribe to our YT channel - @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤️

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

6 REPLIES 6
parry2k
Super User
Super User

@msbutton27 are you getting any error or what? Simply saying not working doesn't explain anything?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@msbutton27 it is pretty straightforward, add a date dimension to your model, see these videos on how to do it, and change the type "create date" and "close date" columns to type date in PQ.

 

Set the relationship of these two dates with the date dimension on the date column, one relationship will be active, other will be inactive. Assume create date relationship is active, add the following two measures, and in visuals, use year and month from the date dimension and the measures on the values:

 

Learn basics of Time Intelligence DAX functions - Part 1 - YouTube

 

Learn why marking a Date dimension as date table is critical to use DAX Time Intelligence functions ...

 

Create Count = COUNTROWS ( YourTable )

Closed Count = CALCULATE ( [Create Count], USERELATIONSHIP ( YourTable[Closed Date], DateTable[Date] ) )

 

👉 Learn Power BI and Fabric - subscribe to our YT channel - @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤️

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Alex_Sawdo
Resolver II
Resolver II

I'm not entirely sure what your data model looks like, however I'd recommend creating a seperate calendar table then creating two inactive relationships between the date column of the calendar table and two new date columns from your source table (Closed Date and Open Date). By adding in two columns as dates without the time part, the relationships will work correctly otherwise there may be issues. Once this is done, create two measures seen here:

Closed = 
CALCULATE(
COUNT(
[Unique ID Field]
),
USERELATIONSHIP(
[Close Date],
'Calendar'[Date]
)
)
Opened = 
CALCULATE(
COUNT(
[Unique ID Field]
),
USERELATIONSHIP(
[Open Date],
'Calendar'[Date]
)
)

The top one is for the closed tickets and the bottom one is for opened tickets. 

Thanks - I created a calendar and trying to create the measurement and this happens:

msbutton27_1-1691580486256.png

 

I put this in but doesn't work:

ClosedCount =
CALCULATE(
COUNT(
[Closed]
),
USERELATIONSHIP(RawData[Closed],
'Calendar'[Date]
)
)

 

msbutton27_3-1691580940024.png

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.