Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
Solved! Go to 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
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
@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:
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
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 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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |