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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nini1
Frequent Visitor

Getting max value of a column fixed for every row

Hello everyone,

 

I'm a new user of Power BI and need your help to solve the problem.

I have a data of customer who have unique identifier and corresponding date field. 

Nini1_0-1640269087286.png

I want to create field  max date per client (takes maximum value noted per each client) and max date(takes maximum value for all the data). I tried to use max (date) function to create the last field but for each row I get different max values but I want max value to be fixed for each row.

 

Could you please help me to solve this issue?

 

Thank you in advance

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@Nini1 

use the following measures

maxDatePerClient =
CALCULATE ( MAX ( tbl[date] ), ALLEXCEPT ( tbl, tbl[id] ) )

maxDateAll= CALCULATE ( MAX ( tbl[date] ), ALL(tbl))

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

2 REPLIES 2
smpa01
Super User
Super User

@Nini1 

use the following measures

maxDatePerClient =
CALCULATE ( MAX ( tbl[date] ), ALLEXCEPT ( tbl, tbl[id] ) )

maxDateAll= CALCULATE ( MAX ( tbl[date] ), ALL(tbl))

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
Nini1
Frequent Visitor

Thank you very much! 

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.