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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sprao
Helper I
Helper I

SAME MAX VALUE HOW TO BRING ONE MAX VALUE IN NEXT COLUMN

Hi,

 

in query one project have same values, so need to bring one value with max condition to next column.Can you please help on this

 

Risk Custom = VAR MAXVALUE = CALCULATE(MAX('4 Risks Project'[ResidualRisk Indicator(Custom)]),ALLEXCEPT('4 Risks Project','4 Risks Project'[Project Name])) RETURN IF('4 Risks Project'[ResidualRisk Indicator(Custom)] = MAXVALUE,'4 Risks Project'[ResidualRisk Indicator(Custom)])

 

sprao_0-1647949821138.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sprao , Add an index column in power query and try like

 


risk Column =
var _max = maxx(filter('4 Risks Project','4 Risks Project'[Project Name] = earlier('4 Risks Project'[Project Name])),'4 Risks Project'[ResidualRisk Indicator(Custom)])
return
if([Index] = Minx(filter('4 Risks Project','4 Risks Project'[Project Name] = earlier('4 Risks Project'[Project Name]) && '4 Risks Project'[ResidualRisk Indicator(Custom)] = _max), [Index]), '4 Risks Project'[ResidualRisk Indicator(Custom)] , blank())

 

Power Query- Index Column: https://youtu.be/NS4esnCDqVw

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

3 REPLIES 3
sprao
Helper I
Helper I

Thank you , Perfect solution

amitchandak
Super User
Super User

@sprao , Add an index column in power query and try like

 


risk Column =
var _max = maxx(filter('4 Risks Project','4 Risks Project'[Project Name] = earlier('4 Risks Project'[Project Name])),'4 Risks Project'[ResidualRisk Indicator(Custom)])
return
if([Index] = Minx(filter('4 Risks Project','4 Risks Project'[Project Name] = earlier('4 Risks Project'[Project Name]) && '4 Risks Project'[ResidualRisk Indicator(Custom)] = _max), [Index]), '4 Risks Project'[ResidualRisk Indicator(Custom)] , blank())

 

Power Query- Index Column: https://youtu.be/NS4esnCDqVw

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Thank you ,perfect solution

Helpful resources

Announcements
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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.