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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ceaton
Frequent Visitor

Total of Tickets Resolved by Day

Hello,

 

I am trying to create a measure that will show the total number of Ticket IDs per Resolved Date.  I looked at some past answers, but they all involved me joining a Calendar table and I lost my date hierarchies in my table.  I really need to keep those date heirarchies.

 

Ticket IDCreated DateResolved DateCreate to Respond (Hours)Create to Resolve (Hours)
214672726/12/20247/18/20240.29213.38
214591316/10/20247/18/20248.07220.11
214262275/30/20247/16/202432.1262.48
214867546/18/20247/15/2024113.92152.65
214990996/24/20247/15/202416.71126.89
214801036/17/20247/15/20240.46164.73
214819406/17/20247/15/20245.36159.37
214684486/12/20247/15/202432.56185.41
214824196/17/20247/15/20244.7158.02
214801936/17/20247/15/202410.12160.97
214869586/18/20247/15/20240.36147.13
214803316/17/20247/12/2024141.48154.71
214396796/4/20247/10/20244.25213.96
215154286/27/20247/10/202466.2966.29
215177996/28/20247/10/202444.562.45
215181916/28/20247/10/20246.9859.4
215030366/24/20247/9/202486.6886.84
215144536/27/20247/9/20241.6364.82

 

Here's the measure I attempted to use, but it keeps giving me errors:

 

Measure = CALCULATE(COUNT(Sheet1[Ticket],FILTER(all(Sheet1),Sheet1[Resolved Date]=SELECTEDVALUE(Sheet1[Resolved Date]&&Sheet1=SELECTEDVALUE(Sheet1[Ticket]))))

 

Any help you can give a newbie would be very appreciated!

4 REPLIES 4
rajendraongole1
Super User
Super User

Hi @ceaton - create below measure to ge the total number of Ticket IDs per Resolved Date

CountTt =
CALCULATE(
    COUNT(TTTC[Ticket ID]),
    FILTER(
        ALL(TTTC),
        TTTC[Resolved Date] = SELECTEDVALUE(TTTC[Resolved Date])
    )
)

 

rajendraongole1_0-1722535389926.png

 

Hope it helps

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thank you, I tried:

 

CountTt =
CALCULATE(
    COUNT(Sheet1[Ticket]),
    FILTER(
        ALL(Sheet1),
        Sheet1[Resolved Date] = SELECTEDVALUE(Sheet1[Resolved Date])
    )
)
 
But I should have tickets for every single day, instead I'm seeing results like this:
ceaton_0-1722539913338.png

 

 
Anonymous
Not applicable

Hi @ceaton 

 

Please try this:

Create a new calendar table:

Table =
	CALENDAR(
		MIN('Sheet1'[Resolved Date]),
		MAX('Sheet1'[Resolved Date])
	)

Then add a measure:

MEASURE =
VAR _currentDate =
    MAX ( 'Table'[Date] )
VAR _Outcome =
    CALCULATE (
        COUNT ( 'Sheet1'[Ticket ID] ),
        FILTER ( ALLSELECTED ( Sheet1 ), 'Sheet1'[Resolved Date] = _currentDate )
    )
RETURN
    IF ( _Outcome = 0, 0, _Outcome )

The result is as follow:

vzhengdxumsft_0-1722582922684.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

OK, I tried what you provided and all the rows are zeros:

ceaton_0-1722883952203.png

ceaton_1-1722883971467.pngceaton_2-1722883984561.png

Please let me know what I am doing incorrectly!

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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