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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.