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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Shree_185
Helper I
Helper I

Need help in GroupBy for few fields/columns

Hi Everyone,

 

I have data something like this, and I want to count no days in the queue, group by Incident Number and status.

 

Available Data: 

Shree_185_0-1650428671844.png

 

Ticket NumberStart dateEnd dateDays in QueueStatus Queue
121244/12/20224/13/20221ClosedTier3
121244/13/20224/15/20222ClosedTier3
121214/15/20224/16/20221ClosedTier3
121224/16/20224/17/20221ClosedTier3
121244/16/20224/18/20222ClosedTier3

 

Required Output:

 

Shree_185_1-1650428706846.png

 

Ticket NumberDays in QueueStatus Queue
121245ClosedTier3
121211ClosedTier3
121221ClosedTier3
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Shree_185 ,

 

You can directly drag your required field and mark ticket number column as dont summerize and mark days column summerized as sum.

Samarth_18_0-1650430607366.png

Samarth_18_1-1650430628132.png

And if you need a separate table then you could use below code:-

Table 2 = SUMMARIZE('Table','Table'[Ticket Number],'Table'[Queue],'Table'[Status ],"Number of Days",SUM('Table'[Days in Queue]))

BR,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

1 REPLY 1
Samarth_18
Community Champion
Community Champion

Hi @Shree_185 ,

 

You can directly drag your required field and mark ticket number column as dont summerize and mark days column summerized as sum.

Samarth_18_0-1650430607366.png

Samarth_18_1-1650430628132.png

And if you need a separate table then you could use below code:-

Table 2 = SUMMARIZE('Table','Table'[Ticket Number],'Table'[Queue],'Table'[Status ],"Number of Days",SUM('Table'[Days in Queue]))

BR,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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