Is there a function or method within Quick Sight that serves a similar purpose to Tableau’s INDEX function for generating sequential numbers without relying on the RANK function?
Essentially, I’m just looking to add sequential row numbers to a table visual that doesn’t need to be sorted.
Hi @phalguni24 - I do not think QS has any auto increment sequence number functionality available, can you explore dense function which essentially added a sequence number with some columns or you can keep all columns.
Hi @phalguni24 - I agree with @ErikG , the better option to generate the sequence number at snowflake side or in the custom Sql and use the advantage of source db.
Could you clarify what you mean by “extending the SQL”? Are you suggesting the direct execution of a custom SQL query against the database to potentially create an index?
A bit confused, could you please explain once?
Hi @phalguni24 - In snowflake you can create a sequence object and then can be used in SQL or if you need to create new sequence, rank or dense rank may be an option.
Please check this and update your findings so that it can help wider community.
Hello @phalguni24, if this is a field you want to complete through a calculated field, I do believe the rank function is the best option. On this Quick Sight Community topic, one of our experts provided an example function to complete the task.
I do believe that since you are utilizing Snowflake, the best case scenario would be creating the index value in your snowflake view directly or from your SQL statement when you ingest the data into your Quick Sight dataset like Erik suggested.
I am going to mark this as a solution for now, but if your issue is not resolved after trying some of these options please let us know!