# Taking 2 different expressions and combining info for a 3rd result

**URL:** <https://discuss.prometheus.io/t/taking-2-different-expressions-and-combining-info-for-a-3rd-result/834>\
**Category:** PromQL\
**Created:** [March 8, 2022, 8:00pm UTC](https://discuss.prometheus.io/t/taking-2-different-expressions-and-combining-info-for-a-3rd-result/834 "2022-03-08T20:00:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trjones89](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@trjones89](https://discuss.prometheus.io/u/trjones89)\
**Post date:** [March 8, 2022, 8:00pm UTC](https://discuss.prometheus.io/t/taking-2-different-expressions-and-combining-info-for-a-3rd-result/834/1 "2022-03-08T20:00:27Z")

</div>

I have 2 different expressions. One gives me host names that I need, the other gives me it’s status. I’m trying to figure out how to pull the data together so I have the names and status in one.  
ex. -  
apCombinedStatsSessionAgentStatus{function=“TEST DEVICE”} ( looking at values of 3)

apSipSAStatsSessionAgentHostname{function=“TEST DEVICE”} (specifically the field apSipSAStatsSessionAgentHostname=)
