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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
mjay83
New Member

How to get Max Value and return other column of same row

Hi Power BI Experts,how do i create a new column to get a string column according to max value of another numberic colume?

The picture below shown the scenario, the new column MaxApp should be 'A' for ABDULAKK, because max value for ABDULLAK for the column 0TCTQUCOUNT is 973. What formula i should put in MaxApp to achieve this?

MaxApp.JPG

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mjay83 , Assume all are column

Create new column like

New column =
var _max = maxx(filter(Table, [OTCUSERNM] =earlier([OTCUSERNM])), [OTCQUCOUNT])
return
maxx(filter(Table, [OTCUSERNM] =earlier([OTCUSERNM]) && [OTCQUCOUNT] =_max), [Application])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mjay83 , Assume all are column

Create new column like

New column =
var _max = maxx(filter(Table, [OTCUSERNM] =earlier([OTCUSERNM])), [OTCQUCOUNT])
return
maxx(filter(Table, [OTCUSERNM] =earlier([OTCUSERNM]) && [OTCQUCOUNT] =_max), [Application])

Incredible and straight forward solution!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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