Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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.
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |