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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.