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
dading
Helper II
Helper II

Summarize Status Table

Hi...im beginner to PowerBI

 

i have a table as shown below :

eqmtidtimestarttimeendStatusDuration_hours
S106-Apr-2020 07:30:0006-Apr-2020 08:12:27A                   0.7075
S106-Apr-2020 08:12:2706-Apr-2020 08:12:41A                   0.0039
S106-Apr-2020 08:12:4106-Apr-2020 08:13:53B                   0.0200
S106-Apr-2020 08:13:5306-Apr-2020 08:14:08C                   0.0042
S106-Apr-2020 08:14:0806-Apr-2020 08:14:18C                   0.0028
S106-Apr-2020 08:14:1806-Apr-2020 08:15:48A                   0.0250
S106-Apr-2020 08:15:4806-Apr-2020 08:31:11D                   0.2564
S106-Apr-2020 08:31:1106-Apr-2020 08:41:28D                   0.1714
S106-Apr-2020 08:41:2806-Apr-2020 08:44:11C                   0.0453

 

and i want to summarize it to be like this

Can you help me please?

eqmtidtimestarttimeendStatusDuration_hours
S106-Apr-2020 07:30:0006-Apr-2020 08:12:41A                   0.7114
S106-Apr-2020 08:12:4106-Apr-2020 08:13:53B                   0.0200
S106-Apr-2020 08:13:5306-Apr-2020 08:14:18C                   0.0069
S106-Apr-2020 08:14:1806-Apr-2020 08:15:48A                   0.0250
S106-Apr-2020 08:15:4806-Apr-2020 08:41:28D                   0.4278
S106-Apr-2020 08:41:2806-Apr-2020 08:44:11C                   0.0453

 

 

thank you.

 

1 ACCEPTED SOLUTION

@dading , Got it. I created a new start date to be used. an created a visual based on

Solution attached after signature

 

View solution in original post

7 REPLIES 7
parry2k
Super User
Super User

@dading add a sum measure and drop all the column in table visual except duration_hours instead use the following measure

 

Duration Hours Sum = SUM ( YourTable[Duration_hours] )

 

Would appreciate Kudos 🙂 if my solution helped.



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 , what i want is summarize the timestart and timeend base on status

for example status A (1-2 row)

the result will be

timestart = 07:30:00

timeend = 08:12:41

@dading ,

Take First/min for timestart and max/last for timeend.

 

Or You can take summarize


summarize(Table,table[eqmtid],table[Status],"Time Start",Min(table[timestart]),"Time End",Max(table[timeend]),"Duration hours",Sum(table[Duration_hours]))

@amitchandak i have tried it, but i got some result missed

for example status A

timestart 07:30:00

timeend 08:15:48 (should be 08:12:41)

@dading , Got it. I created a new start date to be used. an created a visual based on

Solution attached after signature

 

Wow..amazing

this is what i want

 

thanl you @amitchandak 

by the way

@amitchandak Can we do the same thing in power query? how to do that

 

thanks in advance

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.