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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
jaipal
Resolver III
Resolver III

consolidating rows

Hello community, I have a senario like thisCapture1.PNG

 and i am trying to consolidate the date in the following format

jaipal_0-1635124063955.png

 

Thanks.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jaipal ,

Change the time format.

11.png

Create three measures.

Max_date = CALCULATE(MAX('Table'[End time]),FILTER(ALL('Table'),'Table'[Employee name]=SELECTEDVALUE('Table'[Employee name])&&'Table'[Date]=SELECTEDVALUE('Table'[Date])))
Min_date = CALCULATE(MIN('Table'[Start time]),FILTER(ALL('Table'),'Table'[Date]=SELECTEDVALUE('Table'[Date])&&'Table'[Employee name]=SELECTEDVALUE('Table'[Employee name])))
Duration_time = CALCULATE(SUM('Table'[Duration]),FILTER(ALL('Table'),'Table'[Employee name]=SELECTEDVALUE('Table'[Employee name])&&'Table'[Date]=SELECTEDVALUE('Table'[Date])))

22.png

Best Regards

Community Support Team _ polly

 

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

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jaipal ,

Change the time format.

11.png

Create three measures.

Max_date = CALCULATE(MAX('Table'[End time]),FILTER(ALL('Table'),'Table'[Employee name]=SELECTEDVALUE('Table'[Employee name])&&'Table'[Date]=SELECTEDVALUE('Table'[Date])))
Min_date = CALCULATE(MIN('Table'[Start time]),FILTER(ALL('Table'),'Table'[Date]=SELECTEDVALUE('Table'[Date])&&'Table'[Employee name]=SELECTEDVALUE('Table'[Employee name])))
Duration_time = CALCULATE(SUM('Table'[Duration]),FILTER(ALL('Table'),'Table'[Employee name]=SELECTEDVALUE('Table'[Employee name])&&'Table'[Date]=SELECTEDVALUE('Table'[Date])))

22.png

Best Regards

Community Support Team _ polly

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.