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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
topazz11
Helper III
Helper III

DAX Max value

Hi.

I thought it was easy, but somehow I can't get it to work.

I have a table with 3 value columns.

I want to add another Column which shows the maximum number among the 3 values columns.

Tried a column and measure...it could show each row but doesnt show summary level correctly.

here is the pbix file and screen shot.

Could you help me?

Thanks,

 

PBIX file 

 

download11.png

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @topazz11 

 

try this measure:

Measure_Max Value = 
Var _A = sum('Table'[Value1])
Var _B = sum('Table'[Value2])
var _C = sum('Table'[Value3])
return
max(max(_A,_B),_C)

 

output:

 

VahidDM_0-1635543238023.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
VahidDM
Super User
Super User

Hi @topazz11 

 

try this measure:

Measure_Max Value = 
Var _A = sum('Table'[Value1])
Var _B = sum('Table'[Value2])
var _C = sum('Table'[Value3])
return
max(max(_A,_B),_C)

 

output:

 

VahidDM_0-1635543238023.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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