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

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

 

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors