The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
19 | |
18 | |
16 | |
13 |
User | Count |
---|---|
38 | |
38 | |
23 | |
21 | |
17 |