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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

CalculateTable as First Occurence from Table with Repeated Values

I've simplified this as much as possible to focus on my need.

 

Every day I identify a list of errors in our system and add the current day's errors to a list of errors from previous days.

 

So the data table has the following structure and content: 

 

   Date    Error
01/01/2019   A
01/01/2019   B
01/01/2019   C
01/02/2019   A
01/02/2019   B
01/01/2019   C
01/02/2019   D

01/03/2019   B
01/03/2019   D

01/03/2019   E

01/03/2019   F

 

I'm trying to use CalculateTable to create a table that has only one row for each error, and the date on that row should be the first date for the row in the table.

 

I would like the resulting table to look like this:

   Date    Error
01/01/2019   A
01/01/2019   B
01/01/2019   C
01/02/2019   D

01/03/2019   E

01/03/2019   F

 

Thanks!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Just in case you want to explore the Query Editor solution, you can use Group By and then select the function as Minimum.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Just in case you want to explore the Query Editor solution, you can use Group By and then select the function as Minimum.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thanks!

 

This is the right path for what I need. Now I need to figure out an effective way to include results from more than one table in a matrix.

 

Cheers!

Iamnvt
Continued Contributor
Continued Contributor

@Anonymous  I don' think CALCULATETABLE can do this operations.

 

you can try SUMMARIZE:

Summarize = SUMMARIZE('Table', 'Table'[Error], "Date", MIN('Table'[Date]))
Anonymous
Not applicable

Thanks! This is good to know if I need to summarize for a single column and don't need to use the results in a matrix. Unfortunately, I need to summarize for more than one column in the table and the results will be displayed in a matrix. I didn't demonstrate that in my details, so you wouldn't have known.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors