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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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