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
JPQ
Frequent Visitor

Return the Highest value from a row to a new table's collumn

Hi,

 

I'm having a problem relating some values that are caused by the type of table (i think!)

In one table i have the cumulative expenses by month and by the type of investment. In another table i have the maximum cost that i can spend in that year by type of investment.

So, in other to compare the max of the month (cumulative), the max of the year and the atual spent by type of investement, i think i need to tranform a row From Table A to a collumn in Table B.

Untitled.pngUntitled2.png

I would like to have a graph like the above... I bet it´s something simple or strutural, but i´m kind of new to DAX...

thanks

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@JPQ,

 

You may try LOOKUPVALUE FunctionTOPN Function and MAXX Function.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PattemManohar
Community Champion
Community Champion

@JPQ Please try to create as a measure to get the maximum value dynamically.




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.