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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
slounsbury
Helper II
Helper II

Combine Rows and Select Earliest Date

I am wanting to combine rows that have like ticket numbers and create a new column that will only display the the ealierst date from those tickets. I am fairly new to PBI so I apologize if more info is needed or is not detailed correctly.

 

Currently the table looks like this:

 

SR_Service_RedIDEntered_ByTime_Start_UTCTime_End_UTC
123456joe11/6/17 8:30 PM11/6/17 9:30 PM
123456bob11/7/17 10:30 PM11/7/17 11:00 PM
123456tim11/8/17 6:30 PM11/8/17 7:00 PM
987654bob12/6/17 6:30 PM12/6/17 7:00 PM
987564joe12/12/17 9:30 PM12/12/17 10:00 PM
987654tim1/11/18 6:30 PM1/11/17 7:00 PM

 

I am the new column to just display the first time entry on the ticket like this:

 

SR_Service_RedIDEntered_ByTime_Start_UTCTime_End_UTCFirst_Time
123456joe11/6/17 8:30 PM11/6/17 9:30 PM11/6/17 8:30 PM
123456bob11/7/17 10:30 PM11/7/17 11:00 PM11/6/17 8:30 PM
123456tim11/8/17 6:30 PM11/8/17 7:00 PM11/6/17 8:30 PM
987654bob12/6/17 6:30 PM12/6/17 7:00 PM12/6/17 6:30 PM
987564joe12/12/17 9:30 PM12/12/17 10:00 PM12/6/17 6:30 PM
987654tim1/11/18 6:30 PM1/11/17 7:00 PM12/6/17 6:30 PM

 

Or somehow create a column that marks the first time and then I can sort it out while making the report.

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION
slounsbury
Helper II
Helper II

Was able to figure out how to create the column by using:

 

column = CALCULATE(MIN(Time_Entry[Time_Start_UTC]), FILTER(Time_Entry, Time_Entry[SR_Service_RecID]=EARLIER([SR_Service_RecID])))

View solution in original post

1 REPLY 1
slounsbury
Helper II
Helper II

Was able to figure out how to create the column by using:

 

column = CALCULATE(MIN(Time_Entry[Time_Start_UTC]), FILTER(Time_Entry, Time_Entry[SR_Service_RecID]=EARLIER([SR_Service_RecID])))

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.