# Reporting - how to get multiple data keys in table details? Also calculations for nested queries?

**URL:** <https://forum.inductiveautomation.com/t/reporting-how-to-get-multiple-data-keys-in-table-details-also-calculations-for-nested-queries/32711>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [February 29, 2020, 12:43am UTC](https://forum.inductiveautomation.com/t/reporting-how-to-get-multiple-data-keys-in-table-details-also-calculations-for-nested-queries/32711 "2020-02-29T00:43:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![rpavlicek](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rpavlicek/32/55868_2.png) [@rpavlicek](https://forum.inductiveautomation.com/u/rpavlicek)\
**Post date:** [February 29, 2020, 6:47pm UTC](https://forum.inductiveautomation.com/t/reporting-how-to-get-multiple-data-keys-in-table-details-also-calculations-for-nested-queries/32711/6 "2020-02-29T18:47:33Z")

</div>

I'm looking through and trying to build a script based on what you have in your post you linked.

> [@Report with Scripted Nested Data](http://forum.inductiveautomation.com/t/report-with-scripted-nested-data/11801/2):
>
> So, I figured this out on my own with a lot of help from inspect.py, which showed me this: Java Type: \<type 'com.inductiveautomation.reporting.common.api.QueryResults'\> M: \<type 'void'\> addNestedQueryResults(\<type 'java.lang.String'\>,\<type '[Lcom.inductiveautomation.reporting.common.api.QueryResults;'\>) M: getCoreResults() returns \<type 'com.inductiveautomation.ignition.common.Dataset'\> M: \<type 'java.util.TreeMap'\> getNestedQueryResults() M: \<type 'java.lang.Object'\> get(\<type 'i…

Could you update the format from your original post so it's more readable? Also, for the data key "ZZ" you had to create to go above the script, did you do a Basic Query, what did you put in as a query? Thanks

---

_[View the full topic](https://forum.inductiveautomation.com/t/reporting-how-to-get-multiple-data-keys-in-table-details-also-calculations-for-nested-queries/32711)._
