Discussions

 View Only
  • 1.  Auto numbering report rows

    Posted 14 days ago

    Hello,

    Can a simple incremental row number be added to the report? Regardless of how the report is sorted, I want to see a record number starting from the top of the current sort order. Any help is greatly appreciated.



    ------------------------------
    Sincerely,
    Sam Rozenfeld
    ------------------------------


  • 2.  RE: Auto numbering report rows

    Posted 14 days ago

    Does [Record ID#] suit your need?



    ------------------------------
    Adam Krzyzanek
    ------------------------------



  • 3.  RE: Auto numbering report rows

    Posted 14 days ago

    No, because Record IDs are permanent. I am trying to add a sort order number. 



    ------------------------------
    Sam Rozenfeld
    ------------------------------



  • 4.  RE: Auto numbering report rows

    Posted 14 days ago
    Edited by Allan S 14 days ago

    This would give you a row number.

    var text Query = "{3.LTE.'" & [Record ID#] & "'}";
    Size(GetRecords($Query))



    ------------------------------
    Allan S
    ------------------------------



  • 5.  RE: Auto numbering report rows

    Posted 14 days ago

    I'm pretty sure there's not a way to number rows on a report where the Sort and filters are  unknown in advance. There are ways to number rows on the report but we would have to understand the filters and the sort on the report. 



    ------------------------------
    Mark Shnier (Your Quickbase Coach)
    mark.shnier@gmail.com
    ------------------------------



  • 6.  RE: Auto numbering report rows

    Posted 14 days ago

    Any solution would be DOA once users start playing with the report. In theory you could have a formula query that mimics the same filters as your report and ranks it in some fashion with those filters/sort behavior, but then if a user were to apply a dynamic filter or re-sort the report in another format, the values of that column would not re-shuffle since those aren't data binding to the actual row you'd have mis-aligned numbers. 



    ------------------------------
    Chayce Duncan
    ------------------------------



  • 7.  RE: Auto numbering report rows

    Posted 13 days ago

    I recall seeing Quickbase Junkie writeup with a video walkthrough, but as Chayce mentioned, that would only work by matching the Formula Query logic with the report logic. If the records are resorted, the Formula Queries won't recalculate.

    Here's the Quickbase Junkie link to Rank Records Using the 'Size' Query Function.

    Unfortunately, I think the simple answer to your question is "no" with native Quickbase. You'd have to leverage custom Code Pages or pull QB data into another platform.



    ------------------------------
    Brian Seymour
    ------------------------------



  • 8.  RE: Auto numbering report rows

    Posted 12 days ago
    Edited by Mark Shnier (Your Quickbase Coach) 12 days ago

    I just realized I sort of have a solution. 
    make a formula field or even a report formula field and with a formula of 1.  Call it [Row Number]. Make  a summary report contrived to have one row per record. As a last resort include the Record ID as a group by. 


    Then include [Row Number] on the report and set the summary method to Running Totals  



    ------------------------------
    Mark Shnier (Your Quickbase Coach)
    mark.shnier@gmail.com
    ------------------------------