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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
k943
Helper I
Helper I

Creating a measure: Summing the response time of each ticket ID

I am trying to create a measure that sums up the total response time of all the tickets. For example, the measure should generate 7 since ticket 1's response time is 3 days and ticket 2 is 4 days. 

My measure gives 25 days but it should gives 7 days ( Calculate (Sum(table[Response Time]), ALLEXCEPT(Table, Table[Ticket ID]) 

k943_0-1679396359221.png

 

 

1 ACCEPTED SOLUTION
serpiva64
Super User
Super User

Hi,

you can try

m = sumx(SUMMARIZE('Table','Table'[Ticket ID], "RT" , min('Table'[Response Time])), [RT])
If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

View solution in original post

4 REPLIES 4
Riddhi_06
Frequent Visitor

Hi,
You can create a new table by using following DAX code, Table3 is the table which contains two existing columns

NEW TABLE=
SUMMARIZE(Table3,
Table3[Ticket ID],
"TIME",
MAX(Table3[Time]))

Then you can just drag drop TIME column from the new table and you can get the desired result

I hope it helps!
k943
Helper I
Helper I

what is RT?

RT is = min('Table'[Response Time]))

You obtain this

serpiva64_0-1679406867067.png

 

serpiva64
Super User
Super User

Hi,

you can try

m = sumx(SUMMARIZE('Table','Table'[Ticket ID], "RT" , min('Table'[Response Time])), [RT])
If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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