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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LD
Frequent Visitor

Select the Max Value between 4 Cells

Dear,

 

I have the following data table:

 

CURRENT STATE       DATE1        DATE2       DATE3

On-going                  May 21       Jun 21       Ago 21

Late                           APR 20       Jun 20

[Blank]                       APR 20       Jun 20

On-going                  Jan 21                         Feb 21

 

 

I would like to have a new column that take the max value between DATE1, DATE2 and DATE3 when CURRENT STATE is not Empty, so:

 

CURRENT STATE       DATE1        DATE2       DATE3           New Value

On-going                  May 21       Jun 21       Ago 21          Ago 21

Late                           APR 20       Jun 20                            Jun 21

[Blank]                       APR 20       Jun 20                            [Blank]

On-going                  Jan 21                         Feb 21            Feb 21

 

Thank you!!!!

 

LD

 

 

1 ACCEPTED SOLUTION
stevedep
Memorable Member
Memorable Member

Something like this;

 

Max Value =
VAR ValueTable =
UNION(
   ROW(“Value”,SUM(Data[Revenue])),
   ROW(“Value”,SUM(Data[Revenue])),
   ROW(“Value”,SUM(Data[Revenue])),
   ROW(“Value”,[Measure1])
)
RETURN
MAXX(ValueTable,[Value])

View solution in original post

1 REPLY 1
stevedep
Memorable Member
Memorable Member

Something like this;

 

Max Value =
VAR ValueTable =
UNION(
   ROW(“Value”,SUM(Data[Revenue])),
   ROW(“Value”,SUM(Data[Revenue])),
   ROW(“Value”,SUM(Data[Revenue])),
   ROW(“Value”,[Measure1])
)
RETURN
MAXX(ValueTable,[Value])

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.