Platform

Platform

A place for Apptio product users to learn, connect, share and grow together.

 View Only
  • 1.  How to get Table row count in a report

    Posted Wed December 20, 2023 03:28 AM

    Hi,

    Just like how we use the function TableInfo("Last Updated", "Table Name") to get the last updated date for the table, is there a way to get the row count of the table too?

    Basically, I am trying to create a report which shows the last updated and row count for a set of tables.

    Thanks in advance!



    ------------------------------
    Regards,
    Saaraunsh
    ------------------------------

    #TBMStudio


  • 2.  RE: How to get Table row count in a report

    Posted Wed December 20, 2023 04:50 AM

    The RowCount(table name) will give you this.
    The out-of-the-box Data Expiration report will show you row counts and  the last updated date for every table.  The report can be found in a Cost Transparency project under Data Quality / Summary (Data Quality - Summary) / Data Expiration tab.




  • 3.  RE: How to get Table row count in a report

    Posted Wed December 20, 2023 04:55 AM

    Great! Thank you so much @Rene Norskov :)



    ------------------------------
    Regards,
    Saaraunsh
    ------------------------------



  • 4.  RE: How to get Table row count in a report

    Posted Wed December 20, 2023 06:24 AM

    Follow up question:

    I am trying to get row counts of several tables into a column in 1 table. I have a column which contains the table names, lets say the column name is 'TableName'. When I use the formula RowCount(TableName), it shows an error and does not return any values. I believe the RowCount() function expects the actual table name as the argument and not another column which contains the table name.

    Is there a way to achieve this?



    ------------------------------
    Regards,
    Saaraunsh
    ------------------------------



  • 5.  RE: How to get Table row count in a report

    Posted Wed December 20, 2023 07:31 AM

    You can use the Eval() function to achieve this.

    However, your calculation times can be affected if you use Eval() so it is be to avoid it.  You may consider using the out-of-the-box report mentioned above.




  • 6.  RE: How to get Table row count in a report

    Posted Wed December 20, 2023 07:58 AM

    Thanks again @Rene Norskov :)
    I will take that into consideration.

    However, since I am working in Bill of IT and not CT, I cannot see the data quality summary report. Is there an equivalent report in Bill of IT too?



    ------------------------------
    Regards,
    Saaraunsh
    ------------------------------



  • 7.  RE: How to get Table row count in a report

    Posted Wed December 20, 2023 04:13 PM

    Yes, have a look at the Data Freshness report in the Billing Data Quality collection.