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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Create a calculated column with averages from another column, but not showing repeated values

Hello everyone.

I have a table which contains a column with names of employees, a column with month names, and also another column which shows the values of a certain KPI for each employee, for each month. I'd like to create another column with the total average of the KPI (considering all months), for each employee. I've been able to do that, but I have a problem. Since the name of every employee is repeated 12 times (one for each month), I get repeated values of the total average in the new column I created, and I'd like to get rid of it. I'd like to have the value of the average showed only in the first time the name of the corresponding employee appears, and the remaining 11 cells for the same employee to be blank. Is it possible to do that? Thanks in advance.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous Yes, but you will need a date or index column so that you can define "first". So a lot of times you would do something like:

Column =

VAR __Employee = [Employee]

VAR __Min = MINX(FILTER('Table',[Employee]=__Employee),[Date])

RETURN

IF([Date]=__Min,<some calc>,BLANK())



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@Anonymous Yes, but you will need a date or index column so that you can define "first". So a lot of times you would do something like:

Column =

VAR __Employee = [Employee]

VAR __Min = MINX(FILTER('Table',[Employee]=__Employee),[Date])

RETURN

IF([Date]=__Min,<some calc>,BLANK())



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.