# Dynamic Table for Reports

**URL:** <https://forum.inductiveautomation.com/t/dynamic-table-for-reports/55469>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [January 28, 2022, 8:51am UTC](https://forum.inductiveautomation.com/t/dynamic-table-for-reports/55469 "2022-01-28T08:51:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergei\_Kitov](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Sergei\_Kitov](https://forum.inductiveautomation.com/u/Sergei_Kitov)\
**Post date:** [January 28, 2022, 8:51am UTC](https://forum.inductiveautomation.com/t/dynamic-table-for-reports/55469/1 "2022-01-28T08:51:47Z")

</div>

Hello all!  
I want to create a report that would show the number of faults over a certain period of time. I ran into the problem that in -Reporting Module- it is impossible to explicitly create a dynamic table. For example, if I need data for the period from January 12, 2021 to January 14, 2021, then I need 3 columns with data, if I need it from January 12 to January 15, then 4 columns, and so on. Are there any ideas other than creating tables for all possible dates?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/f/bfa8111c056d022a66c04d7ef16de79bbf0f0704.png)

Thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 28, 2022, 12:44pm UTC](https://forum.inductiveautomation.com/t/dynamic-table-for-reports/55469/2 "2022-01-28T12:44:15Z")

</div>

You don't have to make multiple tables. You do have to use a table with enough columns for your worst case, and then hide the extras. Displaying variable layout datasets generally requires a script datasource to re-arrange things into a predictable format. Start here:

> [@How to manage the table component of a report when column number can change at runtime](https://forum.inductiveautomation.com/t/how-to-manage-the-table-component-of-a-report-when-column-number-can-change-at-runtime/53383/3):
>
> This approach is probably the best you can do: TL/DR: Reporting tables cannot have variable numbers or columns, nor variable column names. You can fake it to a certain extent by hiding columns and using other variables for the column names in the table header. Consider using a script data source to transform any given dataset to have the needed column names while populating the variables for the column headers from that given dataset. And hiding the unused columns. Good luck.
