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.
Hi...im beginner to PowerBI
i have a table as shown below :
eqmtid | timestart | timeend | Status | Duration_hours |
S1 | 06-Apr-2020 07:30:00 | 06-Apr-2020 08:12:27 | A | 0.7075 |
S1 | 06-Apr-2020 08:12:27 | 06-Apr-2020 08:12:41 | A | 0.0039 |
S1 | 06-Apr-2020 08:12:41 | 06-Apr-2020 08:13:53 | B | 0.0200 |
S1 | 06-Apr-2020 08:13:53 | 06-Apr-2020 08:14:08 | C | 0.0042 |
S1 | 06-Apr-2020 08:14:08 | 06-Apr-2020 08:14:18 | C | 0.0028 |
S1 | 06-Apr-2020 08:14:18 | 06-Apr-2020 08:15:48 | A | 0.0250 |
S1 | 06-Apr-2020 08:15:48 | 06-Apr-2020 08:31:11 | D | 0.2564 |
S1 | 06-Apr-2020 08:31:11 | 06-Apr-2020 08:41:28 | D | 0.1714 |
S1 | 06-Apr-2020 08:41:28 | 06-Apr-2020 08:44:11 | C | 0.0453 |
and i want to summarize it to be like this
Can you help me please?
eqmtid | timestart | timeend | Status | Duration_hours |
S1 | 06-Apr-2020 07:30:00 | 06-Apr-2020 08:12:41 | A | 0.7114 |
S1 | 06-Apr-2020 08:12:41 | 06-Apr-2020 08:13:53 | B | 0.0200 |
S1 | 06-Apr-2020 08:13:53 | 06-Apr-2020 08:14:18 | C | 0.0069 |
S1 | 06-Apr-2020 08:14:18 | 06-Apr-2020 08:15:48 | A | 0.0250 |
S1 | 06-Apr-2020 08:15:48 | 06-Apr-2020 08:41:28 | D | 0.4278 |
S1 | 06-Apr-2020 08:41:28 | 06-Apr-2020 08:44:11 | C | 0.0453 |
thank you.
Solved! Go to Solution.
@dading , Got it. I created a new start date to be used. an created a visual based on
Solution attached after signature
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
94 | |
74 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |