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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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