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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
RNewport
Regular Visitor

Can you identify values across a table?

HI. I am new to Power BI. I am trying to get the highest share price for each of these companies in my Ten Day Average Table into a corresponding column in my Summary REITs table. Any way to do that? 

image.png

RNewport_1-1655496103422.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RNewport ,

 

Try this calculated column.

Max Value = 
VAR _max_svc_us = MAX('Ten Day Average'[SVC-US])
VAR _max_dhc_us = MAX('Ten Day Average'[DHC-US])
VAR _max_opi_us = MAX('Ten Day Average'[OPI-US])
VAR _max_ilpt_us = MAX('Ten Day Average'[ILPT-US])
VAR _result = 
SWITCH(
    'Summary REITS'[REIT],
    "SVC-US",_max_svc_us,
    "DHC-US",_max_dhc_us,
    "OPI-US",_max_opi_us,
    "ILPT-US",_max_ilpt_us
)
RETURN
    _result

vcgaomsft_0-1655877972278.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

9 REPLIES 9
RNewport
Regular Visitor

@SpartaBI I've only been establishing relationsips as needed so I haven't connected the two data sheets yet. Happy to share the PBIX since all the data is public info. How would you like to receive this?  

@RNewport you can share a public link only the file from your onedrive/gdrive ot use dropbox etc and put the link here 

Here's a link from my goggle drive. Please let me know if you have any trouble accessing the file, and thanks again!
https://drive.google.com/file/d/1Pm_5UGX0V-YF5KkUWgK7PzLTl6lhTg1Y/view?usp=sharing

@RNewport Hey, I can download. 
Can you give an example of what number do you want to put where?

Yes. so I'm looking for the highest/max values from each column for SVC, DHC, ILPT, and OPI in the Ten Day Average sheet to populate in each applicable row in the Summary REITs Table. The max values are as follows:

RNewport_0-1655818789987.png

 

Anonymous
Not applicable

Hi @RNewport ,

 

Try this calculated column.

Max Value = 
VAR _max_svc_us = MAX('Ten Day Average'[SVC-US])
VAR _max_dhc_us = MAX('Ten Day Average'[DHC-US])
VAR _max_opi_us = MAX('Ten Day Average'[OPI-US])
VAR _max_ilpt_us = MAX('Ten Day Average'[ILPT-US])
VAR _result = 
SWITCH(
    'Summary REITS'[REIT],
    "SVC-US",_max_svc_us,
    "DHC-US",_max_dhc_us,
    "OPI-US",_max_opi_us,
    "ILPT-US",_max_ilpt_us
)
RETURN
    _result

vcgaomsft_0-1655877972278.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

That totally worked. Thank you! 

@RNewport I will PM you

SpartaBI
Community Champion
Community Champion

@RNewport yes, it's easy to do in Power BI but you need to supply more info.
Are these tables connected through a relationship? If you what are the detilas of it.
If you could share the PBIX it will be the best option.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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