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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sentsara
Helper II
Helper II

DAX Max value from another column based on row value

Hi ,

 

Need help on DAX Expression to repeat MAX Values of column2 in column3 .

 

Dataset Name: Measure

COLUMN1 COLUMN2   Column3 <DAX Expression needed>

1            25

2             35

3            70

4           15

5           45

 

expected output:

 

COLUMN1 COLUMN2   Column3 <DAX Expression needed>

1            25                       70

2             35                      70

3            70                       70

4           15                       70

5           45                         70

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Use this DAX formula:

 

Column3 = CALCULATE(MAX(Table1[Column2]),ALL(Table1[Column2]))

 

Max_Value.PNG

 

Thanks

Raj

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Use this DAX formula:

 

Column3 = CALCULATE(MAX(Table1[Column2]),ALL(Table1[Column2]))

 

Max_Value.PNG

 

Thanks

Raj

Thanks Rajendran.

IF col2 is calculated expression also ,I think we can apply the same expression. can you confirm on this?

Hi @sentsara,

 

Only the main part is needed in the calculated column.

column3 = MAX(Table1[Column2])

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Yes, Calculated column also can be used there.

 

Thanks

Raj

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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